mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
system: link-local check using empty() to avoid warning
This commit is contained in:
parent
bec615f6f7
commit
23894aa370
@ -806,7 +806,7 @@ function get_configured_ip_addresses()
|
||||
if (!empty($if[$iptype])) {
|
||||
foreach ($if[$iptype] as $addr) {
|
||||
if (!empty($addr['ipaddr'])) {
|
||||
$scope = $addr['link-local'] ? "%{$ifname}" : '';
|
||||
$scope = !empty($addr['link-local']) ? "%{$ifname}" : '';
|
||||
$ip_array[$addr['ipaddr'] . $scope] = $ifname;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user