diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index c4ade09e00f..36754934a0d 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -6782,12 +6782,12 @@ class Form
}
// Add where from hooks
- $parameters = [
+ $parameters = array(
'object' => $objecttmp,
'htmlname' => $htmlname,
'filter' => $filter,
'searchkey' => $searchkey
- ];
+ );
$reshook = $hookmanager->executeHooks('selectForFormsListWhere', $parameters); // Note that $action and $object may have been modified by hook
if (!empty($hookmanager->resPrint)) {