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

Merge pull request #13466 from owncloud/Undefined-index-mimetype-cache

check if mimetype is set - fixes #13452
parents c9db9523 65041440
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.
Finish editing this message first!
Please register or to comment