correction bug si pas reponse sur le hook
This commit is contained in:
parent
468b8bcab3
commit
c805571544
@ -217,14 +217,15 @@ if (isModEnabled('ticket')) {
|
||||
|
||||
// Hook for insertion new items in the List of possible landing pages
|
||||
$reshook = $hookmanager->executeHooks('addToLandingPageList',$tmparray,$object);
|
||||
if (!empty($reshook)) {
|
||||
if ($reshook < 0) {
|
||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
} else if ($reshook == 0) {
|
||||
if ($reshook < 0) {
|
||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||
} else if ($reshook === 0) {
|
||||
if (count($hookmanager->resArray)!==0) {
|
||||
$tmparray=$hookmanager->resArray;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$head = user_prepare_head($object);
|
||||
|
||||
$title = $langs->trans("User");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user