From 49f5e806ee7e2e705a84bf77c6c1d375e8906fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20R=C3=B6nnvall?= Date: Thu, 15 Sep 2016 10:28:34 +0200 Subject: Use !empty() instead of isset() (cherry picked from commit 6a9d1bfc5c90011af10a1704231340a42fa9f51d) --- src/etc/inc/filter.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; } -- cgit v1.1