correction bug si pas reponse sur le hook
This commit is contained in:
parent
74a5c91a48
commit
468b8bcab3
@ -216,11 +216,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 ($reshook < 0) {
|
if (!empty($reshook)) {
|
||||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
if ($reshook < 0) {
|
||||||
} elseif ($reshook == 0) {
|
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
$tmparray=$hookmanager->resArray;
|
} else if ($reshook == 0) {
|
||||||
|
$tmparray=$hookmanager->resArray;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$head = user_prepare_head($object);
|
$head = user_prepare_head($object);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user