From 996ae2336d67674d256bb297aced5af68d5ce2c5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Feb 2020 11:59:27 +0100 Subject: [PATCH] Prepare PHP v8 - No more 'each' operator --- htdocs/core/class/ldap.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index b22473ec483..10d34afd867 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -1397,7 +1397,8 @@ class Ldap //Parse flags to text $retval = array(); - while (list($flag, $val) = each($flags)) { + //while (list($flag, $val) = each($flags)) { + foreach ($flags as $flag => $val) { if ($uacf >= $val) { $uacf -= $val; $retval[$val] = $flag;