summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-29 19:58:05 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-29 19:58:05 +0200
commitc8d1cd224ddb7cd3c554d0a601e1215968817be4 (patch)
treebe60dc37388f7c14fccbfa0bd2546436ceb407e9 /lib/public
parent1202ab9995e2fa2293bfb8017fc58ca6daa4fba2 (diff)
downloadnextcloud-server-c8d1cd224ddb7cd3c554d0a601e1215968817be4.tar.gz
nextcloud-server-c8d1cd224ddb7cd3c554d0a601e1215968817be4.zip
fix $parent/$source typo
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index f7ab92ef018..bc0e3f15c53 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -140,10 +140,9 @@ class Share {
$view = new \OC\Files\View('/' . $user . '/files/');
$meta = $view->getFileInfo(\OC_Filesystem::normalizePath($path));
$source = $meta['fileid'];
- $parent = $meta['parent'];
$cache = new \OC\Files\Cache\Cache($meta['storage']);
- while ($parent !== '-1') {
+ while ($source !== '-1') {
// Fetch all shares of this file path from DB
$query = \OC_DB::prepare(