diff options
author | Jonas <jonas@freesources.org> | 2022-06-29 14:13:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 14:13:10 +0200 |
commit | 2ee81db18a1dd2cd528726d5bffd952988a1c271 (patch) | |
tree | c311c04a56b894540737b069710ae968650b7fbb | |
parent | 46a49dee8af8c62d0e71385123bf6f0b8b0a1eb4 (diff) | |
parent | 7d07e06bfe3fa7e33a543e652e94b6d3305efae6 (diff) | |
download | nextcloud-server-2ee81db18a1dd2cd528726d5bffd952988a1c271.tar.gz nextcloud-server-2ee81db18a1dd2cd528726d5bffd952988a1c271.zip |
Merge pull request #33050 from nextcloud/fix/cache_partial_array_remove
Check whether entry is of type ICacheEntry in Cache->remove()
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index c6cadf14f86..33a07e9b9e5 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -540,7 +540,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()); |