summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/sharedmount.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-27 21:51:23 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-06 09:56:00 +0200
commit844b1e3fc6aae56926cac27b2402fa16cda2c60a (patch)
tree1a2f9b49d3fceb420ee679689b1caf22761ff12a /apps/files_sharing/lib/sharedmount.php
parentcf5eb0fef546de0523157e943a97abcc8f3d1186 (diff)
downloadnextcloud-server-844b1e3fc6aae56926cac27b2402fa16cda2c60a.tar.gz
nextcloud-server-844b1e3fc6aae56926cac27b2402fa16cda2c60a.zip
add additional unit tests
Diffstat (limited to 'apps/files_sharing/lib/sharedmount.php')
-rw-r--r--apps/files_sharing/lib/sharedmount.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index 97d6f464f3d..0e2f19ef337 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -23,9 +23,9 @@ class SharedMount extends Mount implements MoveableMount {
protected $storage = null;
public function __construct($storage, $mountpoint, $arguments = null, $loader = null) {
- parent::__construct($storage, $mountpoint, $arguments, $loader);
-
+ // first update the mount point before creating the parent
self::verifyMountPoint($arguments['share']);
+ parent::__construct($storage, $mountpoint, $arguments, $loader);
}
/**
@@ -79,7 +79,9 @@ class SharedMount extends Mount implements MoveableMount {
$arguments = array($newPath, $share['id']);
}
- return $query->execute($arguments);
+ $result = $query->execute($arguments);
+
+ return $result === 1 ? true : false;
}
/**