diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php index 5b7b56d6720..a0adae277e3 100644 --- a/htdocs/product/stock/mouvement.php +++ b/htdocs/product/stock/mouvement.php @@ -517,7 +517,7 @@ if ($resql) print "
"; // Add number of product when there is a filter on period - if (count($arrayofuniqueproduct) == 1) + if (count($arrayofuniqueproduct) == 1 && is_numeric($year)) { $productidselected=0; foreach ($arrayofuniqueproduct as $key => $val)