2
0
forked from Wavyzz/dolibarr

Fix scrutinizer

This commit is contained in:
Laurent Destailleur
2019-09-06 19:12:43 +02:00
parent 018a43e1d3
commit 231725e351
4 changed files with 13 additions and 10 deletions

View File

@@ -894,14 +894,15 @@ class Cronjob extends CommonObject
/**
* Load object information
*
* @return int
* @param int $id ID
* @return int <0 if KO, >0 if OK
*/
public function info()
public function info($id)
{
$sql = "SELECT";
$sql.= " f.rowid, f.datec, f.tms, f.fk_user_mod, f.fk_user_author";
$sql.= " FROM ".MAIN_DB_PREFIX."cronjob as f";
$sql.= " WHERE f.rowid = ".$this->id;
$sql.= " WHERE f.rowid = ".$id;
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
$resql=$this->db->query($sql);