Skip to content

Commit

Permalink
Don't return any data for non-existant users
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Nov 7, 2011
1 parent 7f99c81 commit 9565908
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/auth/ad.class.php
Expand Up @@ -160,6 +160,10 @@ function getUserData($user){

//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];
Expand Down

0 comments on commit 9565908

Please sign in to comment.