Do not use the presence of lan as an indicator of having only one interface. Actually deduce that from the count of interfaces. It is perfectly legal on 2.0 to not have a lan interface and only opt/wan ones.

This commit is contained in:
Ermal 2010-04-16 18:41:25 +00:00
parent 38b357bdb5
commit f691243dac

View File

@ -287,7 +287,7 @@ function update_description(itemnum) {
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<?php if($config['interfaces']['lan']): ?>
<?php if(count($config['interfaces']) > 1): ?>
<tr>
<td colspan="2" valign="top" class="listtopic">Network Address Translation</td>
</tr>