diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 65f741f3225..3cc34986d2f 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -75,7 +75,7 @@ if ($action == 'setstocklimit') if ($action == "correct_stock" && ! $_POST["cancel"]) { if ($_POST["price"] == '') $_POST["price"] = 0; - if (is_numeric($_POST["nbpiece"]) && $id) + if (is_numeric($_POST["nbpiece"]) && $id && is_numeric($_POST["price"])) { $product = new Product($db); $result=$product->fetch($id);