Skip to content

Commit

Permalink
Fixed notice on undefined groups
Browse files Browse the repository at this point in the history
  • Loading branch information
foglcz committed Aug 14, 2015
1 parent c8fc23f commit 8751a7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Handlers/GroupsLoader.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public function getUserGroups(Manager $ldap, array $userData)

// Merge the two and return
foreach($memberOf as $dn => $name) {
if(!isset($allGroups[$dn])) {
continue;
}

$memberOf[$dn] = $allGroups[$dn];
}

Expand Down

0 comments on commit 8751a7a

Please sign in to comment.