Fix remove warnings

This commit is contained in:
Laurent Destailleur
2019-03-23 12:04:50 +01:00
parent 82d90a201c
commit c569e71bc8
2 changed files with 9 additions and 2 deletions

View File

@@ -6610,7 +6610,11 @@ class Form
// Can complete the possiblelink array
$hookmanager->initHooks(array('commonobject'));
$parameters=array('listofidcompanytoscan' => $listofidcompanytoscan);
$reshook=$hookmanager->executeHooks('showLinkToObjectBlock', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (! empty($listofidcompanytoscan)) // If empty, we don't have criteria to scan the object we can link to
{
$reshook=$hookmanager->executeHooks('showLinkToObjectBlock', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
}
if (empty($reshook))
{