diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/auth.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index bf27859..55759e8 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -743,6 +743,8 @@ function ldap_get_groups($username) { $info = ldap_get_entries($ldap, $search); + $memberof = array(); + if(is_array($info[0]['memberof'])) { foreach($info[0]['memberof'] as $member) { if(strstr($member, "CN=") !== false) { |