Skip to content
Snippets Groups Projects
Commit 198655f1 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix User->setHome when the backend action fails

parent 4b688db6
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment