diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-07-12 15:06:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 15:06:30 +0200 |
commit | 84d9b17dc7105d32b84e717966730fc00c4ed5be (patch) | |
tree | 255adc14d689f18f9c149c50e47ab4db563ed0f0 /lib/private/Http/Client/DnsPinMiddleware.php | |
parent | b0cef8827daf5e21e8c02ec871b34ad73459db01 (diff) | |
download | nextcloud-server-84d9b17dc7105d32b84e717966730fc00c4ed5be.tar.gz nextcloud-server-84d9b17dc7105d32b84e717966730fc00c4ed5be.zip |
Check for !== false instead
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Http/Client/DnsPinMiddleware.php')
-rw-r--r-- | lib/private/Http/Client/DnsPinMiddleware.php | 2 |
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']; |