From ce47a7d7312e1f88f42f204962e69ba59bfa5dd8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 28 Apr 2013 20:53:23 +0200 Subject: [PATCH] printSearchForm hook match specifications --- htdocs/main.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index e46e91b0318..52c82c86b69 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1500,7 +1500,12 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me // Execute hook printSearchForm $parameters=array(); - $searchform.=$hookmanager->executeHooks('printSearchForm',$parameters); // Note that $action and $object may have been modified by some hooks + $reshook=$hookmanager->executeHooks('printSearchForm',$parameters); // Note that $action and $object may have been modified by some hooks + if (empty($reshook)) + { + $searchform.=$hookmanager->resPrint; + } + else $searchform=$hookmanager->resPrint; // Define $bookmarks if (! empty($conf->bookmark->enabled) && $user->rights->bookmark->lire)