1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 01:26:32 +02:00

Remove arrow function to not break compatibility with PHP < 7.4

This commit is contained in:
Marco Dickert
2023-12-05 13:09:19 +01:00
parent 4ff8fe8965
commit c353619a41

View File

@@ -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;