diff --git a/htdocs/variants/class/ProductAttribute.class.php b/htdocs/variants/class/ProductAttribute.class.php index b3122a24ce4..4f218b79807 100644 --- a/htdocs/variants/class/ProductAttribute.class.php +++ b/htdocs/variants/class/ProductAttribute.class.php @@ -119,7 +119,6 @@ class ProductAttribute extends CommonObject $query = $this->db->query($sql); if ($query) { while ($result = $this->db->fetch_object($query)) { - if (empty($returnonlydata)) { $tmp = new ProductAttribute($this->db); } else { diff --git a/htdocs/variants/class/ProductAttributeValue.class.php b/htdocs/variants/class/ProductAttributeValue.class.php index 23daa1ac9cf..f4723fe47d1 100644 --- a/htdocs/variants/class/ProductAttributeValue.class.php +++ b/htdocs/variants/class/ProductAttributeValue.class.php @@ -131,7 +131,6 @@ class ProductAttributeValue extends CommonObject $query = $this->db->query($sql); while ($result = $this->db->fetch_object($query)) { - if (empty($returnonlydata)) { $tmp = new ProductAttributeValue($this->db); } else {