mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix User->setHome when the backend action fails
This commit is contained in:
parent
4b688db612
commit
198655f109
1 changed files with 2 additions and 2 deletions
|
|
@ -139,8 +139,8 @@ class User {
|
|||
* @return string
|
||||
*/
|
||||
public function getHome() {
|
||||
if ($this->backend->implementsActions(\OC_USER_BACKEND_GET_HOME)) {
|
||||
return $this->backend->getHome($this->uid);
|
||||
if ($this->backend->implementsActions(\OC_USER_BACKEND_GET_HOME) and $home = $this->backend->getHome($this->uid)) {
|
||||
return $home;
|
||||
}
|
||||
return \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/' . $this->uid; //TODO switch to Config object once implemented
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue