aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/sshdcond/sshdcond.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/config/sshdcond/sshdcond.inc b/config/sshdcond/sshdcond.inc
index 756f1556..12af3551 100644
--- a/config/sshdcond/sshdcond.inc
+++ b/config/sshdcond/sshdcond.inc
@@ -117,12 +117,15 @@ function sshdcond_custom_php_write_config() {
function sshdcond_sync_on_changes() {
global $config, $g;
- if (is_array($config['installedpackages']['sshdcondsync'])) {
- if (!$config['installedpackages']['sshdcondsync']['config'][0]['synconchanges']) {
- return;
- }
+ /* Basically, this package was never configured */
+ if (!is_array($config['installedpackages']['sshdcondsync'])) {
+ return;
}
-
+ /* Package is configured but XMLRPC sync is disabled */
+ if (!isset($config['installedpackages']['sshdcondsync']['config'][0]['synconchanges'])) {
+ return;
+ }
+ /* Do XMLRPC sync */
log_error("[sshdcond] xmlrpc sync is starting.");
foreach ($config['installedpackages']['sshdcondsync']['config'] as $rs) {
foreach($rs['row'] as $sh) {