Skip to content

Commit

Permalink
bugfix: don't show empty vlan id in brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Feb 15, 2023
1 parent 0d3e0fa commit c0a2e3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/default/net/netinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ <H1>{$layout.pagetitle}</H1>
</select>
{else}
{strip}
({$network.vlanid})
{if !empty($network.vlanid)}
({$network.vlanid})
{/if}
{if $network.vlandescription}
,&nbsp;{$network.vlandescription|trunescape:45}
{/if}
Expand Down

0 comments on commit c0a2e3d

Please sign in to comment.