(legacy) handle empty interface description in interfaces_assign.php

This commit is contained in:
Ad Schellevis 2015-12-28 18:17:57 +01:00
parent dd47b8919f
commit ccb91eb0ec

View File

@ -405,7 +405,7 @@ include("head.inc");
foreach ($config['interfaces'] as $ifname => $iface):?>
<tr>
<td>
<strong><u><span onclick="location.href='/interfaces.php?if=<?=$ifname;?>'" style="cursor: pointer;"><?=$iface['descr'];?></span></u></strong>
<strong><u><span onclick="location.href='/interfaces.php?if=<?=$ifname;?>'" style="cursor: pointer;"><?=!empty($iface['descr']) ? $iface['descr'] : strtoupper($ifname);?></span></u></strong>
</td>
<td>
<select name="<?=$ifname;?>" id="<?=$ifname;?>">