summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces.php8
-rwxr-xr-xusr/local/www/interfaces_opt.php8
-rwxr-xr-xusr/local/www/interfaces_wan.php8
3 files changed, 15 insertions, 9 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 7dcfefa..e198ea7 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -792,17 +792,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'] == "wan") {
+ if(count($a_gateways) > 0) {
+ foreach ($a_gateways as $gateway) {
+ if($gateway['interface'] == "wan") {
?>
<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>
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>
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index 7dcfefa..e198ea7 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -792,17 +792,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'] == "wan") {
+ if(count($a_gateways) > 0) {
+ foreach ($a_gateways as $gateway) {
+ if($gateway['interface'] == "wan") {
?>
<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>
OpenPOWER on IntegriCloud