diff options
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 323183f..a42a2d7 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -408,17 +408,19 @@ function show_mon_config() { <td valign="top" class="vncellreq">Gateway</td> <td class="vtable"><select name="gateway" class="formselect" id="gateway"> <?php - foreach ($a_gateways as $gateway) { - if($gateway['interface'] == "opt{$index}") { + if(count($a_gateways) > 0) { + foreach ($a_gateways as $gateway) { + if($gateway['interface'] == "opt{$index}") { ?> <option value="<?=$gateway['name'];?>" <?php if ($gateway['name'] == $pconfig['gateway']) echo "selected"; ?>> <?=htmlspecialchars($gateway['name']);?> </option> <?php + } } } ?> - </select> <br> + </select>Select a existing Gateway from the list or add one on the <a href="/system_gateways.php">Gateways</a> page<br> </td> </tr> <tr> |