Fix: Bad sql query
This commit is contained in:
parent
e1f97c009b
commit
f319ec7dd2
@ -1112,7 +1112,7 @@ class BonPrelevement extends CommonObject
|
||||
$result = 0;
|
||||
|
||||
$sql = "DELETE FROM ".MAIN_DB_PREFIX."notify_def";
|
||||
$sql .= " WHERE fk_user=".$user." AND fk_action=".$action;
|
||||
$sql .= " WHERE fk_user=".$user." AND fk_action='".$action."'";
|
||||
|
||||
if ($this->db->query($sql))
|
||||
{
|
||||
@ -1139,7 +1139,7 @@ class BonPrelevement extends CommonObject
|
||||
if ($this->DeleteNotification($user, $action) == 0)
|
||||
{
|
||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."notify_def (datec,fk_user, fk_soc, fk_contact, fk_action)";
|
||||
$sql .= " VALUES (".$db->idate(mktime()).",".$user.", 'NULL', 'NULL', ".$action.")";
|
||||
$sql .= " VALUES (".$db->idate(mktime()).",".$user.", 'NULL', 'NULL', '".$action."')";
|
||||
|
||||
dol_syslog("adnotiff: ".$sql);
|
||||
if ($this->db->query($sql))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user