summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-09 18:00:00 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:25 +0200
commitbfabd247f42f306720d154c3a84285afed589033 (patch)
tree730ba59336329b63741dbeb43a550cd35fa3d313 /apps
parenta86d97295e4e0e1560bcd4cce4bde21aa60a2486 (diff)
downloadnextcloud-server-bfabd247f42f306720d154c3a84285afed589033.tar.gz
nextcloud-server-bfabd247f42f306720d154c3a84285afed589033.zip
fix updating of shared files
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/sharedstorage.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index c90f6d71f71..39d01400089 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -144,13 +144,9 @@ class Shared extends \OC\Files\Storage\Common {
}
public function is_dir($path) {
- if ($path == '' || $path == '/') {
- return true;
- } else if ($source = $this->getSourcePath($path)) {
- list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
- return $storage->is_dir($internalPath);
- }
- return false;
+ $source = $this->getSourcePath($path);
+ list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
+ return $storage->is_dir($internalPath);
}
public function is_file($path) {