]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix $parent/$source typo
authorFlorin Peter <github@florin-peter.de>
Wed, 29 May 2013 17:58:05 +0000 (19:58 +0200)
committerFlorin Peter <github@florin-peter.de>
Wed, 29 May 2013 17:58:05 +0000 (19:58 +0200)
lib/public/share.php

index f7ab92ef018b3057be79b6144db4669b2d4e2fdf..bc0e3f15c535998a5f66fc659c086f9b81414fbf 100644 (file)
@@ -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(