diff options
author | jim-p <jimp@pfsense.org> | 2012-12-04 09:44:28 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-12-04 09:45:29 -0500 |
commit | 752c6ca8117e05e6bb74115d2199dab7ff99168d (patch) | |
tree | 4648e3373a117f0fc3f56111a751a86886e7357b /usr | |
parent | b32329fc083ebc5be0952e5506bef1344b814908 (diff) | |
download | pfsense-752c6ca8117e05e6bb74115d2199dab7ff99168d.zip pfsense-752c6ca8117e05e6bb74115d2199dab7ff99168d.tar.gz |
Do a more strict type match here, otherwise if the result returned is 0, that is also "== false" but not actually boolean false.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php index 009a442..65f5c91 100755 --- a/usr/local/www/firewall_nat_edit.php +++ b/usr/local/www/firewall_nat_edit.php @@ -383,7 +383,7 @@ if ($_POST) { // If a rule already exists, load it if (!empty($natent['associated-rule-id'])) { $filterentid = get_id($natent['associated-rule-id'], $config['filter']['rule']); - if ($filterentid == false) + if ($filterentid === false) $filterent['associated-rule-id'] = $natent['associated-rule-id']; else $filterent =& $config['filter']['rule'][$filterentid]; |