From 09b5971b7da3e46cdc0e18df77deb455e0562ebe Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 May 2014 18:05:59 +0200 Subject: [PATCH] Fix: [ bug #1381 ] PHP Warning when listing stock transactions page --- htdocs/product/stock/mouvement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)