Piwigo / piwigo-videojs

Videojs port for piwigo. Play your videos on your web gallery!
http://piwigo.org/ext/extension_view.php?eid=610
GNU General Public License v3.0
67 stars 46 forks source link

PHP Parse error Piwigo 13.1.0 pwg.php #191

Closed 3nd0y closed 2 years ago

3nd0y commented 2 years ago
PHP Parse error:  syntax error, unexpected ')' in /var/www/Piwigo-13.1.0/include/ws_functions/pwg.php on line 833
3nd0y commented 2 years ago

Need remove comma in this code below

SELECT id, uppercats
  FROM '.CATEGORIES_TABLE.'
  WHERE id IN ('.implode(',', array_values($category_ids)).')
;';
    $uppercats_of = query2array($query, 'id', 'uppercats');

    $full_cat_path = array();
    $name_of_category = array();

    foreach ($uppercats_of as $category_id => $uppercats)
    {
      $full_cat_path[$category_id] = get_cat_display_name_cache(
        $uppercats,
        'admin.php?page=album-',  # **<- this one**
      );

      $uppercats = explode(",", $uppercats);
      $name_of_category[$category_id] = get_cat_display_name_cache(
        end($uppercats),
        'admin.php?page=album-',  # <- and this one
      );
    }
  }