Qual: Derived missing variable from a known one

This commit is contained in:
Raphaël Doursenaud 2014-04-23 18:11:48 +02:00
parent 152fbbd7f6
commit ae11a151d7

View File

@ -916,7 +916,8 @@ class Cronjob extends CommonObject
if ($this->jobtype=='method') if ($this->jobtype=='method')
{ {
// load classes // 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) if ($ret===false)
{ {
$this->error=$langs->trans('CronCannotLoadClass',$file,$this->objectname); $this->error=$langs->trans('CronCannotLoadClass',$file,$this->objectname);