diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-06-26 18:27:53 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-06-26 18:27:53 +0200 |
commit | 0684cc15dc1b524d35fee51e3494e4c91c6833a8 (patch) | |
tree | a6e1df21838f299ad8744d7470445b0cb05c33d4 /lib/private/share | |
parent | ac9412639333b6876f7b4b9d0c9f1d2035890c58 (diff) | |
parent | c33899903250409fea1fded37aa5a4290e4a368b (diff) | |
download | nextcloud-server-0684cc15dc1b524d35fee51e3494e4c91c6833a8.tar.gz nextcloud-server-0684cc15dc1b524d35fee51e3494e4c91c6833a8.zip |
Merge pull request #17071 from owncloud/share-get-users-non-existing
fix getUsersSharingFile with locking
Diffstat (limited to 'lib/private/share')
-rw-r--r-- | lib/private/share/share.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index fd24fc686b1..71390d99966 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 |