diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-11-25 14:32:06 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-11-25 14:32:36 +0000 |
commit | c44d3cf7eb12938de31936feee935644458dafae (patch) | |
tree | 94f13a30fab905b94d765cf9ad7769317760c67b /usr/local/www/firewall_nat_out_edit.php | |
parent | b6cd22487a3bac77d5f604aabd6ab607877177d7 (diff) | |
download | pfsense-c44d3cf7eb12938de31936feee935644458dafae.zip pfsense-c44d3cf7eb12938de31936feee935644458dafae.tar.gz |
Resolves #179. Propperly check if this is an array or not. This is required since php 5.+.
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_out_edit.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 60c1e3a..0cbd44a 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -45,6 +45,9 @@ require("guiconfig.inc"); require("filter.inc"); require("shaper.inc"); +if (!is_array($config['nat']['advancedoutbound'])) + $config['nat']['advancedoutbound'] = array(); + if (!is_array($config['nat']['advancedoutbound']['rule'])) { $config['nat']['advancedoutbound']['rule'] = array(); } |