diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index a21ef8e3305..d0d3717a1f1 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -392,13 +392,13 @@ class FormFile
global $form;
$reshook = 0;
- if (is_object($hookmanager)){
+ if (is_object($hookmanager)) {
$parameters = array();
-+ $reshook = $hookmanager->executeHooks('showdocuments', $parameters, $object);
+ + $reshook = $hookmanager->executeHooks('showdocuments', $parameters, $object);
// May report error
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
- }
+ }
}
// Remode default action if $reskook > 0
if ($reshook > 0) {