Skip to content

Commit 2c600a2

Browse files
committed
Fix phpuints error
1 parent 355051d commit 2c600a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Cleantalk/Common/Helper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public static function ipResolve($ip)
558558
$records = @dns_get_record($hostname, $record_type);
559559

560560
// If forward lookup fails, we can't verify
561-
if (!$records || !is_array($records)) {
561+
if (empty($records)) {
562562
return false;
563563
}
564564

@@ -575,7 +575,6 @@ public static function ipResolve($ip)
575575
}
576576

577577
// Check if the original IP is in the list of IPs the hostname resolves to
578-
// For IPv6, normalize both for comparison
579578
if ($ip_version === 'v6') {
580579
$normalized_ip = self::ipV6Normalize($ip);
581580
foreach ($forward_ips as $forward_ip) {

0 commit comments

Comments
 (0)