diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-04-13 23:07:54 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-04-13 23:07:54 +0200 |
commit | 9f5480eef4dcf36b9e31cfe85f9c56c7becc034d (patch) | |
tree | 26816f6bcb5f6582a025606bb2977ead697a2b3c /lib/private/Http | |
parent | 23b8e4a1d4e3d3f54d18f6c7f1be57baf8f75795 (diff) | |
download | nextcloud-server-9f5480eef4dcf36b9e31cfe85f9c56c7becc034d.tar.gz nextcloud-server-9f5480eef4dcf36b9e31cfe85f9c56c7becc034d.zip |
ensure redis returns bool for hasKey
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Http')
-rw-r--r-- | lib/private/Http/Client/NegativeDnsCache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/NegativeDnsCache.php b/lib/private/Http/Client/NegativeDnsCache.php index 550d75a9c08..631fa19c90f 100644 --- a/lib/private/Http/Client/NegativeDnsCache.php +++ b/lib/private/Http/Client/NegativeDnsCache.php @@ -46,6 +46,6 @@ class NegativeDnsCache { } public function isNegativeCached(string $domain, int $type) : bool { - return $this->cache->hasKey($this->createCacheKey($domain, $type)); + return (bool)$this->cache->hasKey($this->createCacheKey($domain, $type)); } } |