diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-19 15:04:53 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-19 15:04:53 +0100 |
commit | 65041440de3a83a4337def0bd253e88d6d3e6017 (patch) | |
tree | 43012cabaa3e287013c6b77caf2532f8020f883d /lib/private/files | |
parent | 1810ea2d33907b85523d3abb278f5415e3fd3584 (diff) | |
download | nextcloud-server-65041440de3a83a4337def0bd253e88d6d3e6017.tar.gz nextcloud-server-65041440de3a83a4337def0bd253e88d6d3e6017.zip |
check is mimetype is set - fixed #13452
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/cache/cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 8d0681ba935..8831320bcee 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -588,7 +588,7 @@ class Cache { if (is_null($entry) or !isset($entry['fileid'])) { $entry = $this->get($path); } - if ($entry && $entry['mimetype'] === 'httpd/unix-directory') { + if (isset($entry['mimetype']) && $entry['mimetype'] === 'httpd/unix-directory') { $id = $entry['fileid']; $sql = 'SELECT SUM(`size`) AS f1, MIN(`size`) AS f2, ' . 'SUM(`unencrypted_size`) AS f3 ' . |