mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
(config) set description when empty in legacy_config_get_interfaces
This commit is contained in:
parent
2fd3a68d24
commit
75eec3cfe8
@ -73,6 +73,7 @@ function legacy_config_get_interfaces($filters = array())
|
||||
}
|
||||
}
|
||||
if ($iface_match) {
|
||||
$iface['descr'] = !empty($iface['descr']) ? $iface['descr'] : strtoupper($ifname);
|
||||
$interfaces[$ifname] = $iface;
|
||||
}
|
||||
}
|
||||
|
||||
@ -409,7 +409,7 @@ include("head.inc");
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($config['interfaces'] as $ifname => $iface):?>
|
||||
foreach (legacy_config_get_interfaces(array("virtual" => false)) as $ifname => $iface):?>
|
||||
<tr>
|
||||
<td>
|
||||
<strong><u><span onclick="location.href='/interfaces.php?if=<?=$ifname;?>'" style="cursor: pointer;"><?=!empty($iface['descr']) ? $iface['descr'] : strtoupper($ifname);?></span></u></strong>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user