From acea5c17dd2d66a321fd53772ec2e4e694187ead Mon Sep 17 00:00:00 2001 From: MDW Date: Mon, 23 Oct 2023 19:20:55 +0200 Subject: [PATCH] each is deprecated in PHP7.2 and removed in PHP8.0 (#26317) See https://www.php.net/manual/en/function.each.php --- htdocs/core/class/ldap.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index 31ca1a7bb93..c6b438767eb 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -1469,7 +1469,7 @@ class Ldap ); $retval = ""; - while (list($sat, $val) = each($stypes)) { + foreach ($stypes as $sat => $val) { if ($samtype == $sat) { $retval = $val; break;