diff options
author | Alexander Wilke <nachtfalkeaw@web.de> | 2013-05-16 12:12:13 +0300 |
---|---|---|
committer | Alexander Wilke <nachtfalkeaw@web.de> | 2013-05-16 12:12:13 +0300 |
commit | fdfa7527690bbfead02e9df8c54116a32f92c833 (patch) | |
tree | 6f636d3ad1a31350a6fd31c819d03234f937b763 /config | |
parent | d3178a170ce1465624d4e9b51d8925a76da6d01c (diff) | |
download | pfsense-packages-fdfa7527690bbfead02e9df8c54116a32f92c833.tar.gz pfsense-packages-fdfa7527690bbfead02e9df8c54116a32f92c833.tar.bz2 pfsense-packages-fdfa7527690bbfead02e9df8c54116a32f92c833.zip |
freeradius2: generalize the XMLRPC Sync options to make it consistent with other packages
Diffstat (limited to 'config')
-rw-r--r-- | config/freeradius2/freeradius.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc index b25d0af0..b2df3d0b 100644 --- a/config/freeradius2/freeradius.inc +++ b/config/freeradius2/freeradius.inc @@ -2521,9 +2521,9 @@ conf_mount_ro(); /* Uses XMLRPC to synchronize the changes to a remote node */ function freeradius_sync_on_changes() { global $config, $g; - if (is_array($config['installedpackages'][freeradiussync'])){ - $synconchanges = $config['installedpackages'][freeradiussync']['config'][0]['varsyncenablexmlrpc']; - $varsynctimeout = $config['installedpackages'][freeradiussync']['config'][0]['varsynctimeout']; + if (is_array($config['installedpackages']['freeradiussync'])){ + $synconchanges = $config['installedpackages']['freeradiussync']['config'][0]['varsyncenablexmlrpc']; + $varsynctimeout = $config['installedpackages']['freeradiussync']['config'][0]['varsynctimeout']; } else { @@ -2533,8 +2533,8 @@ function freeradius_sync_on_changes() { // if checkbox is NOT checked do nothing switch ($synconchanges){ case "manual": - if (is_array($config['installedpackages'][freeradiussync']['config'][0]['row'])){ - $rs=$config['installedpackages'][freeradiussync']['config'][0]['row']; + if (is_array($config['installedpackages']['freeradiussync']['config'][0]['row'])){ + $rs=$config['installedpackages']['freeradiussync']['config'][0]['row']; } else{ log_error("[FreeRADIUS]: xmlrpc sync is enabled but there is no hosts to push on FreeRADIUS config."); |