correctif hook
This commit is contained in:
parent
2f80f873ea
commit
317b49917a
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user