fix the sql request, add (int)
This commit is contained in:
parent
a05f40463d
commit
e9e2a8850f
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ if ($action === "updatestatusprospect") {
|
|||
$response = '';
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET ";
|
||||
$sql .= "fk_stcomm=".$db->escape($idstatus);
|
||||
$sql .= " WHERE rowid = ".$db->escape($idprospect);
|
||||
$sql .= "fk_stcomm=".(int) $db->escape($idstatus);
|
||||
$sql .= " WHERE rowid = ".(int) $db->escape($idprospect);
|
||||
|
||||
$resql = $db->query($sql);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue