Make proper check here

This commit is contained in:
Ermal 2014-10-14 20:52:41 +02:00
parent 7c4c77ee62
commit febe0112e1

View File

@ -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