diff options
Diffstat (limited to 'lib/foldermapper.php')
-rw-r--r-- | lib/foldermapper.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/foldermapper.php b/lib/foldermapper.php index ade54c72f..79115ec56 100644 --- a/lib/foldermapper.php +++ b/lib/foldermapper.php @@ -19,8 +19,11 @@ class OC_News_FolderMapper { private $userid; - public function __construct($userid){ - $this->userid = $userid; + public function __construct($userid = null){ + if ($userid !== null) { + $this->userid = $userid; + } + $userid = OCP\USER::getUser(); } public function root(){ |