Merge pull request #4051 from marcosgdf/bug-4018
FIX #4018 SQL error if trying to access the mailing/card.php page without an ID defined
This commit is contained in:
commit
295d83001a
@ -196,7 +196,7 @@ class Mailing extends CommonObject
|
||||
$sql.= ", m.date_envoi";
|
||||
$sql.= ", m.extraparams";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."mailing as m";
|
||||
$sql.= " WHERE m.rowid = ".$rowid;
|
||||
$sql.= " WHERE m.rowid = ".(int) $rowid;
|
||||
|
||||
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
|
||||
$result=$this->db->query($sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user