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 83bbbbb commit f1c5f12Copy full SHA for f1c5f12
lib/plugins/authldap/auth.php
@@ -253,7 +253,7 @@ protected function fetchUserData($user, $inbind = false)
253
// $key = array($key=>$regexp), only handles the first key-value
254
$regexp = current($key);
255
$key = key($key);
256
- if ($user_result[$key]) foreach ($user_result[$key] as $grpkey => $grp) {
+ if (is_array($user_result[$key] ?? null)) foreach ($user_result[$key] as $grpkey => $grp) {
257
if ($grpkey !== 'count' && preg_match($regexp, $grp, $match)) {
258
if ($localkey == 'grps') {
259
$info[$localkey][] = $match[1];
0 commit comments