Fix warnings
This commit is contained in:
parent
5ccc5c9e1a
commit
b5c745a573
@ -163,10 +163,16 @@ class Cronjob extends CommonObject
|
|||||||
public $libname;
|
public $libname;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string A test condition to know if job is visible/qualified
|
* @var string A test condition to know if job is visible/qualified
|
||||||
*/
|
*/
|
||||||
public $test;
|
public $test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Autodelete
|
||||||
|
*/
|
||||||
|
public $autodelete;
|
||||||
|
|
||||||
|
|
||||||
const STATUS_DISABLED = 0;
|
const STATUS_DISABLED = 0;
|
||||||
const STATUS_ENABLED = 1;
|
const STATUS_ENABLED = 1;
|
||||||
const STATUS_ARCHIVED = 2;
|
const STATUS_ARCHIVED = 2;
|
||||||
@ -1191,7 +1197,8 @@ class Cronjob extends CommonObject
|
|||||||
dol_syslog(get_class($this)."::run_jobs START ".$this->objectname."->".$this->methodename."(".$this->params.");", LOG_DEBUG);
|
dol_syslog(get_class($this)."::run_jobs START ".$this->objectname."->".$this->methodename."(".$this->params.");", LOG_DEBUG);
|
||||||
|
|
||||||
// Create Object for the called module
|
// Create Object for the called module
|
||||||
$object = new $this->objectname($this->db);
|
$nameofclass = $this->objectname;
|
||||||
|
$object = new $nameofclass($this->db);
|
||||||
if ($this->entity > 0) {
|
if ($this->entity > 0) {
|
||||||
$object->entity = $this->entity; // We work on a dedicated entity
|
$object->entity = $this->entity; // We work on a dedicated entity
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,6 +41,8 @@ class PartnershipUtils
|
|||||||
public $error; //!< To return error code (or message)
|
public $error; //!< To return error code (or message)
|
||||||
public $errors = array(); //!< To return several error codes (or messages)
|
public $errors = array(); //!< To return several error codes (or messages)
|
||||||
|
|
||||||
|
public $output; // To store output of some cron methods
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user