diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 220f22bb62e..b225d57f58a 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -285,8 +285,8 @@ class Product { $sqld = "DELETE from ".MAIN_DB_PREFIX."product "; $sqld.= " WHERE rowid = ".$id; - $this->db->query($sqld); - return 0; + $result = $this->db->query($sqld); + return $result; } else {