check whether user belongs to the backend before calling getHome()

This commit is contained in:
Arthur Schiwon 2013-02-06 02:26:35 +01:00
parent 335b6cd060
commit a721f7d59f
1 changed files with 1 additions and 1 deletions

View File

@ -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;