noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 73/173: Php7.2 incompatibility


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 73/173: Php7.2 incompatibility
Date: Mon, 22 Mar 2021 12:58:47 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit f2be4c35afbc9bebecc5212756d4f58b38ad5880
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: Wed Feb 13 18:32:44 2019 +0100

    Php7.2 incompatibility
---
 include/class/acc_ledger_history_generic.class.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/class/acc_ledger_history_generic.class.php 
b/include/class/acc_ledger_history_generic.class.php
index 5fd4e3c..98c2203 100644
--- a/include/class/acc_ledger_history_generic.class.php
+++ b/include/class/acc_ledger_history_generic.class.php
@@ -538,7 +538,7 @@ class Acc_Ledger_History_Generic extends Acc_Ledger_History
         $array=array();
         $Max=Database::num_row($Res);
         if ($Max==0)
-            return 0;
+            return array();
         $case="";
         $tot_deb=0;
         $tot_cred=0;
@@ -655,8 +655,9 @@ class Acc_Ledger_History_Generic extends Acc_Ledger_History
 
         $this->get_row();
         echo '<TABLE class="result">';
-// detailled printing
-//---
+        // detailled printing
+        //---
+        if ( empty ($this->data)) return;
         foreach ($this->data[0] as $op)
         {
             $class="";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]