aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-04-13 23:07:54 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-04-13 23:07:54 +0200
commit9f5480eef4dcf36b9e31cfe85f9c56c7becc034d (patch)
tree26816f6bcb5f6582a025606bb2977ead697a2b3c /lib/private/Http
parent23b8e4a1d4e3d3f54d18f6c7f1be57baf8f75795 (diff)
downloadnextcloud-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.php2
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));
}
}