Update FileManager.php

This commit is contained in:
Luca 2019-03-19 18:07:02 +01:00
parent 164a0cc433
commit 39a394cc69
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class FileManager implements ManagerInterface
$where = '`id_module` '.(!empty($options['id_module']) && empty($options['id_plugin']) ? '= '.prepare($options['id_module']) : 'IS NULL').' AND `id_plugin` '.(!empty($options['id_plugin']) ? '= '.prepare($options['id_plugin']) : 'IS NULL').''; $where = '`id_module` '.(!empty($options['id_module']) && empty($options['id_plugin']) ? '= '.prepare($options['id_module']) : 'IS NULL').' AND `id_plugin` '.(!empty($options['id_plugin']) ? '= '.prepare($options['id_plugin']) : 'IS NULL').'';
// Categorie // Categorie
$categories = $dbo->fetchArray('SELECT DISTINCT `category` FROM `zz_files` WHERE '.$where.' ORDER BY `category`'); $categories = $dbo->fetchArray('SELECT DISTINCT(BINARY `category`) AS `category` FROM `zz_files` WHERE '.$where.' ORDER BY `category`');
foreach ($categories as $category) { foreach ($categories as $category) {
$category = $category['category']; $category = $category['category'];