From f44f8eb57c6f5e44ccb1f04481923d8220e9ae23 Mon Sep 17 00:00:00 2001 From: Ermal Date: Sun, 26 Sep 2010 19:59:23 +0000 Subject: Properly handle reinitializing of variables on the next loop. Reported-by: http://forum.pfsense.org/index.php/topic,28636.0.html --- etc/inc/gwlb.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 5217e9b..ab72831 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -149,10 +149,11 @@ EOD; if (!is_ipaddr($gwifip)) continue; //Skip this target - $apingercfg .= "target \"{$gateway['monitor']}\" {\n"; + $apingercfg = "target \"{$gateway['monitor']}\" {\n"; $apingercfg .= " description \"{$name}\"\n"; $apingercfg .= " srcip \"{$gwifip}\"\n"; $alarms = ""; + $alarmscfg = ""; $override = false; if (!empty($gateway['lowloss'])) { $alarmscfg .= "alarm loss \"{$name}loss\" {\n"; -- cgit v1.1