Fix: [ bug #1381 ] PHP Warning when listing stock transactions page

This commit is contained in:
Laurent Destailleur 2014-05-11 18:05:59 +02:00
parent 847fa3827b
commit 09b5971b7d

View File

@ -517,7 +517,7 @@ if ($resql)
print "</table><br>";
// 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)