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

check if mimetype is set - fixes #13452
This commit is contained in:
Thomas Müller 2015-01-19 16:35:07 +01:00
commit 4894a2c458

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