Skip to content
Snippets Groups Projects
Commit 830f78b1 authored by Charles Benke's avatar Charles Benke
Browse files

FIX : hookmanager must be init

Else we can't use is on additionnal modules
parent 2b1f57f0
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,8 @@ if (! empty($conf->hrm->enabled) && ! empty($conf->global->MAIN_SEARCHFORM_EMPLO
*/
// Execute hook addSearchEntry
$hookmanager->initHooks(array('searchform','leftblock'));
$parameters=array();
$reshook=$hookmanager->executeHooks('addSearchEntry',$parameters);
if (empty($reshook))
......@@ -132,12 +134,6 @@ else $arrayresult=$hookmanager->resArray;
print json_encode($arrayresult);
if (is_object($db)) $db->close();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment