index.cgi: Hide blue and green if not enabled

Those were shown when a blue or orange interface
was assigned which is not the same as enabled.
This commit is contained in:
Michael Tremer
2015-04-22 13:06:52 +02:00
parent a47376207f
commit db1078ff11
2 changed files with 3 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ END
print '</td>';
print '</tr>';
}
if ( $netsettings{'BLUE_DEV'} ) {
if (&Header::blue_used()) {
my $sub=&General::iporsubtocidr($netsettings{'BLUE_NETMASK'});
print <<END;
<tr>
@@ -318,7 +318,7 @@ END
print '</td>';
print '</tr>';
}
if ( $netsettings{'ORANGE_DEV'} ) {
if (&Header::orange_used()) {
my $sub=&General::iporsubtocidr($netsettings{'ORANGE_NETMASK'});
print <<END;
<tr>