diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-09-05 16:31:54 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-09-05 16:34:52 +0000 |
commit | 9813a1547a0f72bdb0a87702f0403ceda9cd0027 (patch) | |
tree | e778e61b0143694c23d54e34b169b535e0c64b67 /etc/inc | |
parent | 91cae49d4c6daef0fdf8e7cd8920d83a5dd41fca (diff) | |
download | pfsense-9813a1547a0f72bdb0a87702f0403ceda9cd0027.zip pfsense-9813a1547a0f72bdb0a87702f0403ceda9cd0027.tar.gz |
Do not try to syncronize data when this setting is not enabled
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/util.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 65e50c9..b779c32 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -954,9 +954,11 @@ function is_interface_mismatch() { /* sync carp entries to other firewalls */ function carp_sync_client() { - global $g; - update_filter_reload_status("Syncing CARP data"); - touch($g['tmp_path'] . "/filter_sync"); + global $g, $config; + if (is_array($config['installedpackages']['carpsettings']['config'])) { + update_filter_reload_status("Syncing CARP data"); + touch($g['tmp_path'] . "/filter_sync"); + } } /****f* util/isAjax |