2
0
forked from Wavyzz/dolibarr

Merge pull request #18239 from ptibogxiv/patch-437

fix for php8
This commit is contained in:
Laurent Destailleur
2021-07-28 17:29:32 +02:00
committed by GitHub

View File

@@ -115,7 +115,7 @@ if (!GETPOST('confirmmassaction', 'alpha') && $massaction != 'presend' && $massa
$massaction = '';
}
$parameters = array('socid'=>$socid);
$parameters = array('socid'=>isset($socid) ? $socid : null);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');