From: Arthur Schiwon Date: Tue, 19 Mar 2013 10:16:57 +0000 (+0100) Subject: LDAP: check whether user exists for before trying to determine displayname X-Git-Tag: v5.0.1~24^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5bf111e75f1474c0f9baa0f3e2c8ced504533abd;p=nextcloud-server.git LDAP: check whether user exists for before trying to determine displayname --- diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 6af876e483f..1277e074714 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -222,6 +222,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;