fix for sticker

This commit is contained in:
Christophe Battarel 2021-03-04 17:52:05 +01:00
parent c4ad4a33e4
commit 64036706ed

View File

@ -1238,16 +1238,12 @@ class MouvementStock extends CommonObject
$result = $this->db->query($sql); $result = $this->db->query($sql);
if ($result) { if ($result) {
if ($this->db->num_rows($result)) { if ($this->db->num_rows($result)) {
$obj = $this->db->fetch_object($result); $obj = $this->db->fetch_object($result);
$cpt = $obj->cpt; $cpt = $obj->cpt;
} }
$this->db->free($result); $this->db->free($result);
} } else {
else {
dol_print_error($this->db); dol_print_error($this->db);
return -1; return -1;
} }