Merge pull request #13466 from owncloud/Undefined-index-mimetype-cache
check if mimetype is set - fixes #13452
This commit is contained in:
commit
4894a2c458
|
@ -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 ' .
|
||||
|
|
Loading…
Reference in New Issue