Merge pull request #13466 from owncloud/Undefined-index-mimetype-cache
check if mimetype is set - fixes #13452
This commit is contained in:
commit
4894a2c458
1 changed files with 1 additions and 1 deletions
2
lib/private/files/cache/cache.php
vendored
2
lib/private/files/cache/cache.php
vendored
|
@ -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 a new issue