diff options
Diffstat (limited to 'packages/carp_sync_client.php')
-rw-r--r-- | packages/carp_sync_client.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/carp_sync_client.php b/packages/carp_sync_client.php index f94a04fe..311caa3f 100644 --- a/packages/carp_sync_client.php +++ b/packages/carp_sync_client.php @@ -30,8 +30,7 @@ if($already_processed != 1) if($config['installedpackages']['carpsettings']['config'] != "") { $already_processed = 1; - foreach($config['installedpackages']['carpsettings']['config'] as $carp) { - if($carp['synchronizetoip'] <> "" ) { + if($config['installedpackages']['carpsettings']['config']['synchronizetoip'] <> "" ) { /* lets sync! */ $synchronizetoip = $carp['synchronizetoip']; if($carp['synchronizerules'] <> "") { @@ -72,7 +71,6 @@ if($already_processed != 1) } /* copy configuration to remote host */ mwexec("/usr/bin/ssh {$synchronizetoip} /usr/local/pkg/carp_sync_server.php"); - } } } |