From 64036706ed8117c9bce51e60fbf20c201c4e864e Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Thu, 4 Mar 2021 17:52:05 +0100 Subject: [PATCH] fix for sticker --- htdocs/product/stock/class/mouvementstock.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index 0bdeee6522d..02e3988a477 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -1238,16 +1238,12 @@ class MouvementStock extends CommonObject $result = $this->db->query($sql); if ($result) { if ($this->db->num_rows($result)) { - $obj = $this->db->fetch_object($result); - $cpt = $obj->cpt; - } $this->db->free($result); - } - else { + } else { dol_print_error($this->db); return -1; }