From ae11a151d7d5bc885b7ec7260ad645707e63c3b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Wed, 23 Apr 2014 18:11:48 +0200 Subject: [PATCH] Qual: Derived missing variable from a known one --- htdocs/cron/class/cronjob.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/cron/class/cronjob.class.php b/htdocs/cron/class/cronjob.class.php index 19db345f2cc..f1fc788a198 100644 --- a/htdocs/cron/class/cronjob.class.php +++ b/htdocs/cron/class/cronjob.class.php @@ -916,7 +916,8 @@ class Cronjob extends CommonObject if ($this->jobtype=='method') { // load classes - $ret=dol_include_once("/".$this->module_name."/class/".$this->classesname,$this->objectname); + $file = "/".$this->module_name."/class/".$this->classesname; + $ret=dol_include_once($file,$this->objectname); if ($ret===false) { $this->error=$langs->trans('CronCannotLoadClass',$file,$this->objectname);