[Pkg-owncloud-commits] [owncloud] 138/205: fix getUsersSharingFile with locking
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:37:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit c33899903250409fea1fded37aa5a4290e4a368b
Author: Robin Appelman <icewind at owncloud.com>
Date: Mon Jun 22 12:40:34 2015 +0200
fix getUsersSharingFile with locking
---
lib/private/share/share.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index b2ac9ee..3d5cb5b 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list