mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 03:12:35 +01:00
Fix: Bad sql query
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user