From f23b7a262fe4582baf75f9fb968b716c2da3071c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 12 Dec 2013 12:57:25 +0100 Subject: [PATCH] fix fallback overwriting result of getHome --- lib/private/user/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/user/user.php b/lib/private/user/user.php index a9e32b5d59..b4f33fa73c 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -141,8 +141,9 @@ class User { if (!$this->home) { if ($this->backend->implementsActions(\OC_USER_BACKEND_GET_HOME) and $home = $this->backend->getHome($this->uid)) { $this->home = $home; + } else { + $this->home = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/' . $this->uid; //TODO switch to Config object once implemented } - $this->home = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/' . $this->uid; //TODO switch to Config object once implemented } return $this->home; }