diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-19 11:16:57 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-19 14:40:23 +0100 |
commit | 50d0f48ee4d03624232e658d412b29c2502bf204 (patch) | |
tree | 6e07181f450f99ae93c638a696ccf3705f1f7ed6 /apps | |
parent | 18fccf66128d5ee198355d6a064da370d272d9a5 (diff) | |
download | nextcloud-server-50d0f48ee4d03624232e658d412b29c2502bf204.tar.gz nextcloud-server-50d0f48ee4d03624232e658d412b29c2502bf204.zip |
LDAP: check whether user exists for before trying to determine displayname
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 44a19478598..e3a8ba6812c 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -217,6 +217,10 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { * @return display name */ public function getDisplayName($uid) { + if(!$this->userExists($uid)) { + return false; + } + $cacheKey = 'getDisplayName'.$uid; if(!is_null($displayName = $this->connection->getFromCache($cacheKey))) { return $displayName; |