From febe0112e1abc04a78d0aea75839c877e38c4bb4 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 14 Oct 2014 20:52:41 +0200 Subject: Make proper check here --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 93adb5f..715f144 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1976,7 +1976,7 @@ function interfaces_carp_setup() { unset($carp_sync_int); /* setup pfsync interface */ - if ($carp_sync_int and $pfsyncenabled) { + if (isset($carp_sync_int) and isset($pfsyncenabled)) { if (is_ipaddr($pfsyncpeerip)) $syncpeer = "syncpeer {$pfsyncpeerip}"; else -- cgit v1.1