From fdfa7527690bbfead02e9df8c54116a32f92c833 Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Thu, 16 May 2013 12:12:13 +0300 Subject: freeradius2: generalize the XMLRPC Sync options to make it consistent with other packages --- config/freeradius2/freeradius.inc | 10 +++++----- 1 file 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."); -- cgit v1.2.3