Fix php error

This commit is contained in:
Laurent Destailleur 2017-06-06 10:29:34 +02:00
parent 22efbabfa6
commit 2510ec7015

View File

@ -190,7 +190,7 @@ class HookManager
} }
// Init return properties // Init return properties
$this->resPrint=''; $this->resArray=array(); $this->$resNbOfHooks=0; $this->resPrint=''; $this->resArray=array(); $this->resNbOfHooks=0;
// Loop on each hook to qualify modules that have declared context // Loop on each hook to qualify modules that have declared context
$modulealreadyexecuted=array(); $modulealreadyexecuted=array();
@ -209,7 +209,7 @@ class HookManager
// jump to next module/class if method does not exist // jump to next module/class if method does not exist
if (! method_exists($actionclassinstance,$method)) continue; if (! method_exists($actionclassinstance,$method)) continue;
$this->$resNbOfHooks++; $this->resNbOfHooks++;
dol_syslog(get_class($this).'::executeHooks a qualified hook was found for method='.$method.' module='.$module." action=".$action." context=".$context); dol_syslog(get_class($this).'::executeHooks a qualified hook was found for method='.$method.' module='.$module." action=".$action." context=".$context);