cast int
This commit is contained in:
parent
3090c124f0
commit
1cf46f9ae9
@ -1518,7 +1518,7 @@ class Societe extends CommonObject
|
||||
|
||||
$sql .= ' WHERE s.entity IN ('.getEntity($this->element).')';
|
||||
if ($rowid) {
|
||||
$sql .= ' AND s.rowid = '.$rowid;
|
||||
$sql .= ' AND s.rowid = '.((int) $rowid);
|
||||
}
|
||||
if ($ref) {
|
||||
$sql .= " AND s.nom = '".$this->db->escape($ref)."'";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user