mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Initialise $bookmarkList to fix PhanUndeclaredVariableAssignOp
This commit is contained in:
parent
bee172c4b7
commit
83f2282517
|
|
@ -91,7 +91,9 @@ print '<body>'."\n";
|
|||
print '<div>';
|
||||
//print '<br>';
|
||||
|
||||
|
||||
if (!isset($bookmarkList)) {
|
||||
$bookmarkList = '';
|
||||
}
|
||||
if (!isModEnabled('multicompany')) {
|
||||
$langs->load("admin");
|
||||
$bookmarkList .= '<br><span class="opacitymedium">'.$langs->trans("WarningModuleNotActive", $langs->transnoentitiesnoconv("MultiCompany")).'</span>';
|
||||
|
|
@ -128,7 +130,7 @@ if (!isModEnabled('multicompany')) {
|
|||
|
||||
|
||||
// Execute hook printBookmarks
|
||||
$parameters = array('multicompany'=>$multicompanyList);
|
||||
$parameters = array('multicompany' => $multicompanyList);
|
||||
$reshook = $hookmanager->executeHooks('printMultiCompanyEntities', $parameters); // Note that $action and $object may have been modified by some hooks
|
||||
if (empty($reshook)) {
|
||||
$multicompanyList .= $hookmanager->resPrint;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user