From f7b784856af831dcd362a97e0179a77309c6bc72 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Wed, 2 Sep 2009 20:12:59 +0200 Subject: [PATCH] gracefully handle missing groups in auth:ad Ignore-this: 98bfcf5fc6f786038562b0abbccbc6a2 darcs-hash:20090902181259-7ad00-5411a421dc8bd0b1fe704df09631648d0009f9cb.gz --- inc/auth/ad.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; } -- GitLab