diff options
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 378c943..840e4e7 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -934,10 +934,13 @@ on another rule.")?> /* build a list of gateways */ $gateways = array(); $gateways[] = "default"; // default to don't use this feature :) - foreach($config['gateways']['gateway_item'] as $gw_item) { - if($gw_item['gateway'] <> "") - $gateways[] = $gw_item['name']; + if (is_array($config['gateways']['gateway_item'])) { + foreach($config['gateways']['gateway_item'] as $gw_item) { + if($gw_item['gateway'] <> "") + $gateways[] = $gw_item['name']; + } } + ?> <tr> <td width="22%" valign="top" class="vncell">Gateway</td> |