[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);
- [Noalyss-commit] [noalyss] branch pre-stable created (now ae29565cf), dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 10/19: upgrade199 : Correct SQL, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 16/19: cosmetic, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 05/19: Typo, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 02/19: Bug : fix create event from AGENDA, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 07/19: Fix : error when empty,
dwm <=
- [Noalyss-commit] [noalyss] 06/19: Limit search thanks user's preferences, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 01/19: Merge branch 'unstable' of gitlab.com:noalyss/noalyss into unstable, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 08/19: set the search_path, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 09/19: Database : correct the scripts for creating DB and adapt to postgreSQL 12, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 11/19: set version 9.3, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 12/19: Task #2372 : Change AD, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 04/19: Cosmetic, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 03/19: GESTION : operation add receipt number, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 18/19: cosmetic, dwm, 2024/08/31
- [Noalyss-commit] [noalyss] 15/19: C0SEC : add a search for the table of users, dwm, 2024/08/31