From 3b4020e81131cd526a6bbffe14bc14f1cac4fd60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= <jfd@butonic.de>
Date: Wed, 28 Aug 2013 21:04:21 +0200
Subject: [PATCH] add all results, sharing cache also returns entries for
 shared files in external storages

---
 apps/files_sharing/lib/cache.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 82588df42d..acb064f31a 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -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;
-- 
GitLab