summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-27 00:59:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-27 00:59:31 +0000
commitdd98e33080b121b19742ae7124defa4882202d22 (patch)
tree7eb0c638bef782072939299b54537f3f0ba4b80b /usr/local
parent56e0a73d34279688a0588b2570cf8d81d2a110ad (diff)
downloadpfsense-dd98e33080b121b19742ae7124defa4882202d22.zip
pfsense-dd98e33080b121b19742ae7124defa4882202d22.tar.gz
PHP5 fixes. Allow XMLRPC sync to work.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/xmlrpc.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 5bb6e2f..d4cc397 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -38,9 +38,11 @@ require_once("functions.inc");
require_once("array_intersect_key.inc");
/* grab sync to ip if enabled */
-if ($config['installedpackages']['carpsettings']['config']) {
- foreach ($config['installedpackages']['carpsettings']['config'] as $carp) {
- $synchronizetoip = $carp['synchronizetoip'];
+if($config['installedpackages']['carpsettings']) {
+ if ($config['installedpackages']['carpsettings']['config']) {
+ foreach ($config['installedpackages']['carpsettings']['config'] as $carp) {
+ $synchronizetoip = $carp['synchronizetoip'];
+ }
}
}
OpenPOWER on IntegriCloud