]> 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>
Fri, 31 May 2013 10:27:49 +0000 (12:27 +0200)
lib/public/share.php

index a5e74826f7924f78d9ba290e7881de751cbc277c..caf208255ae95c9423b1857f030d658a754994b7 100644 (file)
@@ -141,10 +141,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(