diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-02-06 02:26:35 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-02-06 02:26:35 +0100 |
commit | a721f7d59f4851bf13b6387e1f6d19fa3175d61b (patch) | |
tree | ac8feb81577241141b01339b4da312320b4dc824 | |
parent | 335b6cd0609b269b3b8c85baed2eeed94f654c3d (diff) | |
download | nextcloud-server-a721f7d59f4851bf13b6387e1f6d19fa3175d61b.tar.gz nextcloud-server-a721f7d59f4851bf13b6387e1f6d19fa3175d61b.zip |
check whether user belongs to the backend before calling getHome()
-rw-r--r-- | lib/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php index f953d221543..f530163e5bc 100644 --- a/lib/user.php +++ b/lib/user.php @@ -467,7 +467,7 @@ class OC_User { */ public static function getHome($uid) { foreach(self::$_usedBackends as $backend) { - if($backend->implementsActions(OC_USER_BACKEND_GET_HOME)) { + if($backend->implementsActions(OC_USER_BACKEND_GET_HOME) && $backend->userExists($uid)) { $result=$backend->getHome($uid); if($result) { return $result; |