mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #33059 from nextcloud/backport/33050/stable23
[stable23] Check whether entry is of type ICacheEntry in Cache->remove()
This commit is contained in:
commit
10b5b38c7e
1 changed files with 1 additions and 1 deletions
|
|
@ -537,7 +537,7 @@ class Cache implements ICache {
|
|||
public function remove($file) {
|
||||
$entry = $this->get($file);
|
||||
|
||||
if ($entry) {
|
||||
if ($entry instanceof ICacheEntry) {
|
||||
$query = $this->getQueryBuilder();
|
||||
$query->delete('filecache')
|
||||
->whereFileId($entry->getId());
|
||||
|
|
|
|||
Loading…
Reference in a new issue