summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-07-12 15:06:30 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-07-12 14:46:43 +0000
commit5dcc18af4621c02c5366a29f8556aaa56b332f9a (patch)
tree3ba9ef466b8185cd74776a2d8bb8540d09a99b48 /lib
parent525dfd2f4d30e0536e13718f8211826c8c99720d (diff)
downloadnextcloud-server-5dcc18af4621c02c5366a29f8556aaa56b332f9a.tar.gz
nextcloud-server-5dcc18af4621c02c5366a29f8556aaa56b332f9a.zip
Check for !== false instead
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Http/Client/DnsPinMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php
index 6b5437fa66a..ee0ea053dcf 100644
--- a/lib/private/Http/Client/DnsPinMiddleware.php
+++ b/lib/private/Http/Client/DnsPinMiddleware.php
@@ -82,7 +82,7 @@ class DnsPinMiddleware {
$dnsResponses = dns_get_record($target, $dnsType);
$canHaveCnameRecord = true;
- if ($dnsResponses && count($dnsResponses) > 0) {
+ if ($dnsResponses !== false && count($dnsResponses) > 0) {
foreach ($dnsResponses as $dnsResponse) {
if (isset($dnsResponse['ip'])) {
$targetIps[] = $dnsResponse['ip'];