2
0
forked from Wavyzz/dolibarr

Clean code by adding cast int.

This commit is contained in:
Laurent Destailleur
2021-08-27 16:33:03 +02:00
parent a6ed743af3
commit 2f225ee7e5
62 changed files with 198 additions and 194 deletions

View File

@@ -249,7 +249,7 @@ class Deplacement extends CommonObject
$sql .= " , note_private = ".($this->note_private ? "'".$this->db->escape($this->note_private)."'" : "null");
$sql .= " , note_public = ".($this->note_public ? "'".$this->db->escape($this->note_public)."'" : "null");
$sql .= " , fk_projet = ".($this->fk_project > 0 ? $this->fk_project : 0);
$sql .= " WHERE rowid = ".$this->id;
$sql .= " WHERE rowid = ".((int) $this->id);
dol_syslog(get_class($this)."::update", LOG_DEBUG);
$result = $this->db->query($sql);