From 2510ec70153ea20f0eb551e12d31b5f0a7d97749 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 6 Jun 2017 10:29:34 +0200 Subject: [PATCH] Fix php error --- htdocs/core/class/hookmanager.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php index 65495cb0100..afb670dc267 100644 --- a/htdocs/core/class/hookmanager.class.php +++ b/htdocs/core/class/hookmanager.class.php @@ -190,7 +190,7 @@ class HookManager } // 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 $modulealreadyexecuted=array(); @@ -209,7 +209,7 @@ class HookManager // jump to next module/class if method does not exist 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);