mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-09 17:46:31 +02:00
Remove arrow function to not break compatibility with PHP < 7.4
This commit is contained in:
@@ -1327,7 +1327,7 @@ f00bar;
|
|||||||
if (filter_var($parts['host'], FILTER_VALIDATE_IP))
|
if (filter_var($parts['host'], FILTER_VALIDATE_IP))
|
||||||
array_push($ips, $parts['host']);
|
array_push($ips, $parts['host']);
|
||||||
else
|
else
|
||||||
$ips = array_merge($ips, array_map(fn($i) => $i['ip'] ?? $i['ipv6'], dns_get_record($parts['host'], DNS_A + DNS_AAAA)));
|
$ips = array_merge($ips, array_map(function($i) { return $i['ip'] ?? $i['ipv6']; }, dns_get_record($parts['host'], DNS_A + DNS_AAAA)));
|
||||||
|
|
||||||
if (empty($ips))
|
if (empty($ips))
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user