summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
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