mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
printTopRightMenu trigger numeric never empty
maybe find something better
This commit is contained in:
parent
39ebaf40ac
commit
a7decb2173
|
|
@ -1493,10 +1493,13 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||
$result=$hookmanager->executeHooks('printTopRightMenu',$parameters); // Note that $action and $object may have been modified by some hooks
|
||||
if (is_numeric($result))
|
||||
{
|
||||
if (empty($result)) $toprightmenu.=$hookmanager->resPrint; // add
|
||||
else $toprightmenu=$hookmanager->resPrint; // replace
|
||||
if ($result== 0)
|
||||
$toprightmenu.=$hookmanager->resPrint; // add
|
||||
else
|
||||
$toprightmenu=$hookmanager->resPrint; // replace
|
||||
}
|
||||
else $toprightmenu.=$result; // For backward compatibility
|
||||
else
|
||||
$toprightmenu.=$result; // For backward compatibility
|
||||
|
||||
// Link to module builder
|
||||
if (! empty($conf->modulebuilder->enabled))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user