Export GL PDF : no row found for an accounting

This commit is contained in:
sparkyx 2020-12-10 15:17:20 +01:00
parent a7236046a0
commit f1c2929c2b

View file

@ -101,7 +101,7 @@ foreach ($a_poste as $poste)
$array1=$Poste->get_row_date($from_periode,$to_periode,$l,$s);
// don't print empty account
if ( count($array1[0]) == 0 )
if (empty($array1) || count($array1[0]) == 0 )
{
continue;
}