]> source.dussan.org Git - nextcloud-server.git/commitdiff
add all results, sharing cache also returns entries for shared files in external...
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 28 Aug 2013 19:04:21 +0000 (21:04 +0200)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Thu, 19 Sep 2013 18:08:32 +0000 (21:08 +0300)
apps/files_sharing/lib/cache.php

index 82588df42d2a8e4a29a5f75178f88576bfe37017..acb064f31aa46cff92acf792c4c2da16a80e46a9 100644 (file)
@@ -249,10 +249,10 @@ class Shared_Cache extends Cache {
                        while ($row = $result->fetchRow()) {
                                if (substr($row['path'], 0, 6)==='files/') {
                                        $row['path'] = substr($row['path'],6); // remove 'files/' from path as it's relative to '/Shared'
-                                       $row['mimetype'] = $this->getMimetype($row['mimetype']);
-                                       $row['mimepart'] = $this->getMimetype($row['mimepart']);
-                                       $files[] = $row;
-                               } // else skip results out of the files folder
+                               }
+                               $row['mimetype'] = $this->getMimetype($row['mimetype']);
+                               $row['mimepart'] = $this->getMimetype($row['mimepart']);
+                               $files[] = $row;
                        }
                }
                return $files;