summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-22 12:40:34 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-26 16:31:52 +0200
commitc33899903250409fea1fded37aa5a4290e4a368b (patch)
tree515571786b396508c22645e39537dea12b3c0c84 /lib
parent796aae4402c1b71e7e44ee11ae985a8600b52513 (diff)
downloadnextcloud-server-c33899903250409fea1fded37aa5a4290e4a368b.tar.gz
nextcloud-server-c33899903250409fea1fded37aa5a4290e4a368b.zip
fix getUsersSharingFile with locking
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index b2ac9ee6a42..3d5cb5b393b 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -127,8 +127,8 @@ class Share extends Constants {
$cache = false;
$view = new \OC\Files\View('/' . $ownerUser . '/files');
- if ($view->file_exists($path)) {
- $meta = $view->getFileInfo($path);
+ $meta = $view->getFileInfo($path);
+ if ($meta) {
$path = substr($meta->getPath(), strlen('/' . $ownerUser . '/files'));
} else {
// if the file doesn't exists yet we start with the parent folder