summaryrefslogtreecommitdiffstats
path: root/lib/foldermapper.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-09-13 11:17:02 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-09-13 11:17:02 -0400
commit008e565bed860e9f61dd9aaeefca74e003b42f8a (patch)
tree1f2a20c58c8e61c058a8859bcd07c9f665ac603f /lib/foldermapper.php
parent5c164090799ff96073915a9f21cf83038f828048 (diff)
small refactoring on the backend
Diffstat (limited to 'lib/foldermapper.php')
-rw-r--r--lib/foldermapper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/foldermapper.php b/lib/foldermapper.php
index 28abad0e6..17fcbbf7b 100644
--- a/lib/foldermapper.php
+++ b/lib/foldermapper.php
@@ -25,7 +25,9 @@ class FolderMapper {
if ($userid !== null) {
$this->userid = $userid;
}
- $this->userid = \OCP\USER::getUser();
+ else {
+ $this->userid = \OCP\USER::getUser();
+ }
}