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;