Commit ccb91eb0 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) handle empty interface description in interfaces_assign.php

parent dd47b891
......@@ -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;?>">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment