From 39a394cc69116a8b9916ef2b72e37504235b1654 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 19 Mar 2019 18:07:02 +0100 Subject: [PATCH] Update FileManager.php --- src/HTMLBuilder/Manager/FileManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HTMLBuilder/Manager/FileManager.php b/src/HTMLBuilder/Manager/FileManager.php index 3cd4e7e08..4834f0fb6 100644 --- a/src/HTMLBuilder/Manager/FileManager.php +++ b/src/HTMLBuilder/Manager/FileManager.php @@ -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').''; // 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) { $category = $category['category'];