Case sentive per le categorie degli allegati

This commit is contained in:
Luca 2019-03-19 18:10:10 +01:00
parent 0a9de39786
commit 4f11ff8a23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class FileManager implements ManagerInterface
foreach ($categories as $category) {
$category = $category['category'];
$rs = $dbo->fetchArray('SELECT * FROM `zz_files` WHERE `category`'.(!empty($category) ? '= '.prepare($category) : 'IS NULL').' AND `id_record` = '.prepare($options['id_record']).' AND '.$where);
$rs = $dbo->fetchArray('SELECT * FROM `zz_files` WHERE BINARY `category`'.(!empty($category) ? '= '.prepare($category) : 'IS NULL').' AND `id_record` = '.prepare($options['id_record']).' AND '.$where);
if (!empty($rs)) {
$result .= '