noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 10/12: Bug : when ledger not found


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 10/12: Bug : when ledger not found
Date: Sun, 8 Nov 2020 15:52:16 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6d6c6a438e827a5e6072395c1304ca8d0eca3ed6
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Nov 7 19:22:08 2020 +0100

    Bug : when ledger not found
---
 include/class/acc_account_ledger.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/acc_account_ledger.class.php 
b/include/class/acc_account_ledger.class.php
index 18c58e1..40a164e 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -655,7 +655,7 @@ class Acc_Account_Ledger
     {
         $l=new Acc_Ledger($this->db,$p_jrn);
         $row=$l->get_propertie();
-        if ( strlen(trim($row['jrn_def_class_deb'])) == 0 ) return array();
+        if ( $row == null || strlen(trim($row['jrn_def_class_deb'])) == 0 ) 
return array();
         $valid_account=explode(" ",$row['jrn_def_class_deb']);
         return $valid_account;
     }



reply via email to

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