forked from Wavyzz/dolibarr
Fix yogosha #5627
This commit is contained in:
@@ -3763,7 +3763,7 @@ class Commande extends CommonOrder
|
||||
$sql .= ' date_cloture as datecloture,';
|
||||
$sql .= ' fk_user_author, fk_user_valid, fk_user_cloture';
|
||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'commande as c';
|
||||
$sql .= ' WHERE c.rowid = '.$id;
|
||||
$sql .= ' WHERE c.rowid = '.((int) $id);
|
||||
$result = $this->db->query($sql);
|
||||
if ($result) {
|
||||
if ($this->db->num_rows($result)) {
|
||||
|
||||
Reference in New Issue
Block a user