summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2011-11-07 14:36:23 +0100
committerAndreas Gohr <gohr@cosmocode.de>2011-11-07 14:36:23 +0100
commit9565908d97917c579e2ecb44a0b44a133df598fe (patch)
treed6da5115a78e75ec072d7765296a071b6a3e559c
parent7f99c819166c15279a3214e3439be8efb77f7021 (diff)
downloadrpg-9565908d97917c579e2ecb44a0b44a133df598fe.tar.gz
rpg-9565908d97917c579e2ecb44a0b44a133df598fe.tar.bz2
Don't return any data for non-existant users
-rw-r--r--inc/auth/ad.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/auth/ad.class.php b/inc/auth/ad.class.php
index 4363cfb07..678a32047 100644
--- a/inc/auth/ad.class.php
+++ b/inc/auth/ad.class.php
@@ -160,6 +160,10 @@ class auth_ad extends auth_basic {
//get info for given user
$result = $this->adldap->user_info($user, $fields);
+ if($result == false){
+ return array();
+ }
+
//general user info
$info['name'] = $result[0]['displayname'][0];
$info['mail'] = $result[0]['mail'][0];