console: if no VLANs are there we don't have to print nothing

This commit is contained in:
Franco Fichtner 2018-04-13 08:30:48 +02:00
parent 88a6ede3d5
commit 27a051b577

View File

@ -137,7 +137,7 @@ EOD;
vlan_setup($iflist, $fp);
}
if (isset($config['vlans']['vlan'])) {
if (isset($config['vlans']['vlan'][0])) {
echo "\nVLAN interfaces:\n\n";
foreach ($config['vlans']['vlan'] as $vlan) {
echo sprintf("% -16s%s\n", "{$vlan['if']}_vlan{$vlan['tag']}",