noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 07/19: Fix : error when empty


From: dwm
Subject: [Noalyss-commit] [noalyss] 07/19: Fix : error when empty
Date: Sat, 31 Aug 2024 17:46:28 -0400 (EDT)

sparkyx pushed a commit to branch pre-stable
in repository noalyss.

commit 3b6cdfb9fb252932a4a22565628f52d44cb5c1dc
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Aug 24 11:58:50 2024 +0200

    Fix : error when empty
---
 include/balance.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/balance.inc.php b/include/balance.inc.php
index 3ef72b6ca..0592fcc98 100644
--- a/include/balance.inc.php
+++ b/include/balance.inc.php
@@ -439,12 +439,12 @@ if ( isset($_GET['view'] ) )
         echo td($view_history);
         // label + warning if the saldo is incorrect
         $label=$r['label'];
-        if (in_array($r['type'],array('CHA','ACT','PASINV','PROINV')) && 
$r['sum_deb']<$r['sum_cred'])
+        if (isset ($r['type']) && 
in_array($r['type'],array('CHA','ACT','PASINV','PROINV')) && 
$r['sum_deb']<$r['sum_cred'])
         {
 
             $label.=" ".Icon_Action::warnbulle(85);
         }
-        if (in_array($r['type'],array('PRO','PAS','ACTINV','CHAINV')) && 
$r['sum_deb']>$r['sum_cred'])
+        if (isset ($r['type']) && 
in_array($r['type'],array('PRO','PAS','ACTINV','CHAINV')) && 
$r['sum_deb']>$r['sum_cred'])
         {
 
             $label.=" ".Icon_Action::warnbulle(86);



reply via email to

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