We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7658f97 commit ba76bc3Copy full SHA for ba76bc3
apps/user_ldap/lib/User/User.php
@@ -130,7 +130,8 @@ public function processAttributes(array $ldapEntry): void {
130
$attr = strtolower($this->connection->ldapEmailAttribute);
131
if (isset($ldapEntry[$attr])) {
132
$mailValue = 0;
133
- for ($x = 0; $x < count($ldapEntry[$attr]); $x++) {
+ $emailValues = count($ldapEntry[$attr]);
134
+ for ($x = 0; $x < $emailValues; $x++) {
135
if (filter_var($ldapEntry[$attr][$x], FILTER_VALIDATE_EMAIL)) {
136
$mailValue = $x;
137
break;
0 commit comments