From 6f8efee919a10e0598d671aeadfc2c5c27253c08 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 8 Feb 2025 06:13:36 +0100 Subject: [PATCH] Bug : correct when there is no data --- include/balance.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/balance.inc.php b/include/balance.inc.php index fde6ca91f..cd6326b82 100644 --- a/include/balance.inc.php +++ b/include/balance.inc.php @@ -448,7 +448,7 @@ if ( isset($_GET['view'] ) ) echo td($view_history); // label + warning if the saldo is incorrect $label=$r['label']; - if ( $type_account->selected ) { + if ( $type_account->selected && isset ($r['type'])) { $label .= sprintf("(%s)",$r['type']); } if (isset ($r['type']) && in_array($r['type'],array('CHA','ACT','PASINV','PROINV')) && $r['sum_deb']<$r['sum_cred'])