[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/119: Fix warning with empty array
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/119: Fix warning with empty array |
Date: |
Mon, 26 Oct 2020 18:26:58 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 53b99cbf6386f449fa62a3d047b9b46ea6c8e782
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: Sat Jun 6 21:57:47 2020 +0200
Fix warning with empty array
---
include/param_sec.inc.php | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/param_sec.inc.php b/include/param_sec.inc.php
index 2447692..997cb26 100644
--- a/include/param_sec.inc.php
+++ b/include/param_sec.inc.php
@@ -109,11 +109,13 @@ if ( ! isset($_REQUEST['action']))
echo td($l_line['use_name']);
echo td($l_line['use_first_name']);
echo td($profile);
- // status of security on ledger and action
- $a_sec=$cn->get_row("select us_ledger,us_action from
user_active_security where us_login =$1",
+ // status of security on ledger and action
+ $a_sec=$cn->get_row("select us_ledger,us_action from
user_active_security where us_login =$1",
[$l_line['use_login']]);
- echo td($a_sec['us_ledger']);
- echo td($a_sec['us_action']);
+ if ( ! empty ($a_sec)) {
+ echo td($a_sec['us_ledger']);
+ echo td($a_sec['us_action']);
+ }
echo td($str);
echo "</TR>";
}
- [Noalyss-commit] [noalyss] branch master updated (44dbd49 -> bc168d2), Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 07/119: prevent divide by zero in formula, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 09/119: compatibility PHP74 : join() : glue before piece, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 06/119: reconcilaction : possibility to select only one operation, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 13/119: Bug 1834 : order POST over GET, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 05/119: Bug : syntax error, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 04/119: Bug : use ilike instead of tilde, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 02/119: Bug : correct search remove ~, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 08/119: remove extract, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 03/119: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 01/119: Fix warning with empty array,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 10/119: Fix bug : cannot use % when searching NEW : space can be used now, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 14/119: doc, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 11/119: Improve use of the security, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 17/119: javascript : add function to concat 2 json objects, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 18/119: javascript: remove hardcoding of dialog box for manage_table, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 30/119: Bug 1834 : duplicate , cannot confirm an duplicated operation because the $_GET is taken in priority, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 29/119: Remove debug info, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 37/119: javascript: remove hardcoding of dialog box for manage_table, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 52/119: NEW Security : add tag, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 22/119: ManageTable : you can set the style of the dialog box, Dany De Bontridder, 2020/10/26