From fd97f40c353fababcfa2ddf63152dbbedbe1f014 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 24 May 2012 16:33:59 -0400 Subject: Test for empty here, rather than !, so a blank value (as from mobile clients) doesn't fall to the other tests. --- etc/inc/ipsec.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 07c4869..4ef7db7 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -144,7 +144,7 @@ function ipsec_get_phase1_src(& $ph1ent) { */ function ipsec_get_phase1_dst(& $ph1ent) { global $g; - if (!$ph1ent['remote-gateway']) + if (empty($ph1ent['remote-gateway'])) return false; $rg = $ph1ent['remote-gateway']; if (!is_ipaddr($rg)) { -- cgit v1.1