correctif hook

This commit is contained in:
Sébastien NASSIET 2023-01-13 23:06:44 +01:00
parent 2f80f873ea
commit 317b49917a

View File

@ -219,13 +219,12 @@ if (isModEnabled('ticket')) {
$reshook = $hookmanager->executeHooks('addToLandingPageList', $tmparray, $object);
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
} elseif ($reshook === 0) {
if (count($hookmanager->resArray)!==0) {
$tmparray=$hookmanager->resArray;
}
} elseif ($reshook > 0) {
$tmparray=$hookmanager->resArray;
} elseif ($reshook == 0) {
$tmparray=array_merge($tmparray, $hookmanager->resArray);
}
$head = user_prepare_head($object);
$title = $langs->trans("User");