FIX : Travis errors

This commit is contained in:
Adrien Raze 2022-02-22 15:56:55 +01:00
parent 62bf1e4273
commit 6807c53a0f

View file

@ -709,7 +709,7 @@ class Inventory extends CommonObject
public function getchildWarehouse($id, &$TChildWarehouse)
{
$sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.'entrepot';
$sql.= ' WHERE fk_parent='.$id;
$sql.= ' WHERE fk_parent='.(int) $id;
$sql.= ' ORDER BY rowid';
$resql = $this->db->query($sql);
if($resql && $this->db->num_rows($resql)>0){