summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Rönnvall <fredronn@chalmers.se>2016-09-15 10:28:34 +0200
committerRenato Botelho <renato@netgate.com>2016-09-15 09:44:55 -0300
commit49f5e806ee7e2e705a84bf77c6c1d375e8906fa4 (patch)
tree099783487ecf7e373f58cab234be2723b844eceb
parent080e296714516b3e26e223ef550534a0b4ac0e54 (diff)
downloadpfsense-49f5e806ee7e2e705a84bf77c6c1d375e8906fa4.zip
pfsense-49f5e806ee7e2e705a84bf77c6c1d375e8906fa4.tar.gz
Use !empty() instead of isset()
(cherry picked from commit 6a9d1bfc5c90011af10a1704231340a42fa9f51d)
-rw-r--r--src/etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/filter.inc b/src/etc/inc/filter.inc
index b7eba6c..78b9ac9 100644
--- a/src/etc/inc/filter.inc
+++ b/src/etc/inc/filter.inc
@@ -2068,7 +2068,7 @@ function filter_nat_rules_generate() {
$poolopts = (is_subnet($obtarget) || is_alias($obtarget)) ? $obent['poolopts'] : "";
/* pool option source-hash allows specification of an optional source-hash key */
- if ($poolopts == "source-hash" && isset($obent['source_hash_key'])) {
+ if ($poolopts == "source-hash" && !empty($obent['source_hash_key'])) {
$poolopts = "source-hash ".$obent['source_hash_key'];
}
OpenPOWER on IntegriCloud