Skip to content
Snippets Groups Projects
Commit c8d1cd22 authored by Florin Peter's avatar Florin Peter
Browse files

fix $parent/$source typo

parent 1202ab99
Branches
No related tags found
No related merge requests found
...@@ -140,10 +140,9 @@ class Share { ...@@ -140,10 +140,9 @@ class Share {
$view = new \OC\Files\View('/' . $user . '/files/'); $view = new \OC\Files\View('/' . $user . '/files/');
$meta = $view->getFileInfo(\OC_Filesystem::normalizePath($path)); $meta = $view->getFileInfo(\OC_Filesystem::normalizePath($path));
$source = $meta['fileid']; $source = $meta['fileid'];
$parent = $meta['parent'];
$cache = new \OC\Files\Cache\Cache($meta['storage']); $cache = new \OC\Files\Cache\Cache($meta['storage']);
while ($parent !== '-1') { while ($source !== '-1') {
// Fetch all shares of this file path from DB // Fetch all shares of this file path from DB
$query = \OC_DB::prepare( $query = \OC_DB::prepare(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment