Update html.formfile.class.php

This commit is contained in:
Laurent Destailleur 2021-10-04 19:20:37 +02:00 committed by GitHub
parent 49fd1b761c
commit 2f6a4fa04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,7 +412,7 @@ class FormFile
'hideifempty'=>&$hideifempty,
'removeaction'=>&$removeaction
);
$reshook = $hookmanager->executeHooks('showdocuments', $parameters, $object); // Note that parameters may have been updated by hook
$reshook = $hookmanager->executeHooks('showDocuments', $parameters, $object); // Note that parameters may have been updated by hook
// May report error
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
@ -420,7 +420,7 @@ class FormFile
}
// Remode default action if $reskook > 0
if ($reshook > 0) {
return '';
return $hookmanager->resPrint;
}
if (!is_object($form)) {