Fix a bug in ecm for v14

This commit is contained in:
lmarcouiller 2021-07-28 15:57:12 +02:00
parent 505543e18e
commit df8f099857

View File

@ -1182,7 +1182,7 @@ class FormFile
);
$reshook = $hookmanager->executeHooks('showFilesList', $parameters, $object);
if (isset($reshook) && $reshook != '') { // null or '' for bypass
if (!empty($reshook)) { // null or '' for bypass
return $reshook;
} else {
if (!is_object($form)) {