Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kaminsky <tobias@kaminsky.me>2022-07-01 11:40:52 +0300
committerGitHub <noreply@github.com>2022-07-01 11:40:52 +0300
commit51c8273de958f3e92e01a97642addec62736c4a3 (patch)
tree0262236a2f5f0bf3edf04c3ab27cd2a2c0cb521f
parenta3cc499899466e49f0f0ad389dce60e63e5de38e (diff)
parent3fbd7a660285d44928210483948dd8aa7fe222fa (diff)
Merge pull request #33060 from nextcloud/backport/33050/stable22
[stable22] Check whether entry is of type ICacheEntry in Cache->remove()
-rw-r--r--lib/private/Files/Cache/Cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 5420fb73d7f..34388d87cc0 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -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());