summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-12-04 09:44:28 -0500
committerjim-p <jimp@pfsense.org>2012-12-04 09:45:29 -0500
commit752c6ca8117e05e6bb74115d2199dab7ff99168d (patch)
tree4648e3373a117f0fc3f56111a751a86886e7357b /usr/local/www/firewall_nat_edit.php
parentb32329fc083ebc5be0952e5506bef1344b814908 (diff)
downloadpfsense-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/local/www/firewall_nat_edit.php')
-rwxr-xr-xusr/local/www/firewall_nat_edit.php2
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];
OpenPOWER on IntegriCloud