diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php index 4b879e2dd59..330fae32f3d 100644 --- a/htdocs/product/stock/mouvement.php +++ b/htdocs/product/stock/mouvement.php @@ -42,7 +42,7 @@ $id=GETPOST('id','int'); $product_id=GETPOST("product_id"); $action=GETPOST('action'); $cancel=GETPOST('cancel'); -$idproduct = isset($_GET["idproduct"])?$_GET["idproduct"]:$_PRODUCT["idproduct"]; +$idproduct = GETPOST('idproduct','int'); $year = isset($_GET["year"])?$_GET["year"]:$_POST["year"]; $month = isset($_GET["month"])?$_GET["month"]:$_POST["month"]; $search_movement = isset($_REQUEST["search_movement"])?$_REQUEST["search_movement"]:'';