diff options
author | Fredrik Rönnvall <fredronn@chalmers.se> | 2016-09-15 10:28:34 +0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-09-15 09:44:55 -0300 |
commit | 49f5e806ee7e2e705a84bf77c6c1d375e8906fa4 (patch) | |
tree | 099783487ecf7e373f58cab234be2723b844eceb /src | |
parent | 080e296714516b3e26e223ef550534a0b4ac0e54 (diff) | |
download | pfsense-49f5e806ee7e2e705a84bf77c6c1d375e8906fa4.zip pfsense-49f5e806ee7e2e705a84bf77c6c1d375e8906fa4.tar.gz |
Use !empty() instead of isset()
(cherry picked from commit 6a9d1bfc5c90011af10a1704231340a42fa9f51d)
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/filter.inc | 2 |
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']; } |