Browse Source

Merge pull request #17071 from owncloud/share-get-users-non-existing

fix getUsersSharingFile with locking
remotes/origin/enc_quick_fix_8.1
Vincent Petry 11 years ago
parent
commit
0684cc15dc
  1. 4
      lib/private/share/share.php

4
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

Loading…
Cancel
Save