correction bug si pas reponse sur le hook

This commit is contained in:
Sébastien NASSIET 2023-01-12 19:26:55 +01:00
parent 74a5c91a48
commit 468b8bcab3

View File

@ -217,11 +217,13 @@ if (isModEnabled('ticket')) {
// Hook for insertion new items in the List of possible landing pages // Hook for insertion new items in the List of possible landing pages
$reshook = $hookmanager->executeHooks('addToLandingPageList',$tmparray,$object); $reshook = $hookmanager->executeHooks('addToLandingPageList',$tmparray,$object);
if (!empty($reshook)) {
if ($reshook < 0) { if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
} else if ($reshook == 0) { } else if ($reshook == 0) {
$tmparray=$hookmanager->resArray; $tmparray=$hookmanager->resArray;
} }
}
$head = user_prepare_head($object); $head = user_prepare_head($object);