summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-08-28 21:10:06 +0200
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-09-19 21:08:32 +0300
commit6aeb0a99daf28ecb68b010d96369636a99ad77be (patch)
tree488841ea553da4724007c0c50ded21482d224cda /apps
parent3b4020e81131cd526a6bbffe14bc14f1cac4fd60 (diff)
downloadnextcloud-server-6aeb0a99daf28ecb68b010d96369636a99ad77be.tar.gz
nextcloud-server-6aeb0a99daf28ecb68b010d96369636a99ad77be.zip
same for search by mime
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/cache.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index acb064f31aa..51e8713b97a 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -290,10 +290,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;