From f1c2929c2b2dc2230de26bad922fc9ec649d50f1 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 10 Dec 2020 15:17:20 +0100 Subject: [PATCH] Export GL PDF : no row found for an accounting --- include/export/export_gl_pdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/export/export_gl_pdf.php b/include/export/export_gl_pdf.php index 571c5cf5c..880a1c9b2 100644 --- a/include/export/export_gl_pdf.php +++ b/include/export/export_gl_pdf.php @@ -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; }