summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-09-02 20:12:59 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-09-02 20:12:59 +0200
commitf7b784856af831dcd362a97e0179a77309c6bc72 (patch)
tree0344111d211b9d4e219a4503a3a9d6a7468d1a80 /inc/auth
parentb166ccbc5371b578dd76203b075b0e763bf9da4b (diff)
downloadrpg-f7b784856af831dcd362a97e0179a77309c6bc72.tar.gz
rpg-f7b784856af831dcd362a97e0179a77309c6bc72.tar.bz2
gracefully handle missing groups in auth:ad
Ignore-this: 98bfcf5fc6f786038562b0abbccbc6a2 darcs-hash:20090902181259-7ad00-5411a421dc8bd0b1fe704df09631648d0009f9cb.gz
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/ad.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth/ad.class.php b/inc/auth/ad.class.php
index 6b2efd2c5..05c4c1f8e 100644
--- a/inc/auth/ad.class.php
+++ b/inc/auth/ad.class.php
@@ -150,7 +150,7 @@ class auth_ad extends auth_basic {
}
// always add the default group to the list of groups
- if(!in_array($conf['defaultgroup'],$info['grps'])){
+ if(!is_array($info['grps']) || !in_array($conf['defaultgroup'],$info['grps'])){
$info['grps'][] = $conf['defaultgroup'];
}