aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-24 22:58:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-24 22:58:51 +0000
commit28ea1f0ecd64214945fd5686888edcb258381a16 (patch)
treeae59153a8f29821127588a929c38e96dc487c37d
parent52d97b053982554cda121819362ab39270014f9d (diff)
downloadpfsense-packages-28ea1f0ecd64214945fd5686888edcb258381a16.tar.gz
pfsense-packages-28ea1f0ecd64214945fd5686888edcb258381a16.tar.bz2
pfsense-packages-28ea1f0ecd64214945fd5686888edcb258381a16.zip
Do not use fancy php pointers, leading to the whipeout of carpsettings xml entries on secondary hosts
-rw-r--r--packages/tinydns/tinydns_xmlrpc_sync.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/tinydns/tinydns_xmlrpc_sync.php b/packages/tinydns/tinydns_xmlrpc_sync.php
index 169e0715..08e80e24 100644
--- a/packages/tinydns/tinydns_xmlrpc_sync.php
+++ b/packages/tinydns/tinydns_xmlrpc_sync.php
@@ -47,10 +47,9 @@ function tinydns_do_xmlrpc_sync() {
if(!$syncxmlrpc)
return;
- $carp = &$config['installedpackages']['carpsettings']['config'][0];
- $password = $carp['password'];
+ $password = $config['installedpackages']['carpsettings']['config'][0]['password'];
- if(!$carp['synchronizetoip'])
+ if(!$config['installedpackages']['carpsettings']['config'][0]['synchronizetoip'])
return;
log_error("[tinydns] tinydns_xmlrpc_sync.php is starting.");