Skip to content
Snippets Groups Projects
Commit 65041440 authored by Thomas Müller's avatar Thomas Müller
Browse files

check is mimetype is set - fixed #13452

parent 1810ea2d
No related branches found
No related tags found
No related merge requests found
......@@ -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 ' .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment