From: Thomas Mueller Date: Sat, 2 Nov 2013 19:22:12 +0000 (+0100) Subject: WIN: fixing Fatal error: Call to a member function logicToPhysical() on a non-object... X-Git-Tag: v6.0.0beta3~12^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e37047b2a0aebec25e8e2933f5233306e9aff16b;p=nextcloud-server.git WIN: fixing Fatal error: Call to a member function logicToPhysical() on a non-object in C:\jenkins2\workspace\server-stable5-windows\database\mssql\label\WINDOWS\lib\files\storage\mappedlocal.php on line 311 --- diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php index 47a76c1b840..bf1d6017cbf 100644 --- a/lib/private/files/storage/home.php +++ b/lib/private/files/storage/home.php @@ -19,10 +19,9 @@ class Home extends Local { public function __construct($arguments) { $this->user = $arguments['user']; - $this->datadir = $this->user->getHome(); - if (substr($this->datadir, -1) !== '/') { - $this->datadir .= '/'; - } + $datadir = $this->user->getHome(); + + parent::__construct(array('datadir' => $datadir)); } public function getId() {