From 65041440de3a83a4337def0bd253e88d6d3e6017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 19 Jan 2015 15:04:53 +0100 Subject: [PATCH] check is mimetype is set - fixed #13452 --- lib/private/files/cache/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 8d0681ba93..8831320bce 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 ' .