check is mimetype is set - fixed #13452

This commit is contained in:
Thomas Müller 2015-01-19 15:04:53 +01:00
parent 1810ea2d33
commit 65041440de
1 changed files with 1 additions and 1 deletions

View File

@ -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 ' .