From 5dd7d7482b4e9ea322caf4bd7bd04cc4f5b285ac Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 16 Mar 2005 18:30:00 +0000 Subject: Check to make sure carp settings is an array before going forward. --- packages/carp_sync_client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/carp_sync_client.php b/packages/carp_sync_client.php index d7e9146a..8e494abe 100644 --- a/packages/carp_sync_client.php +++ b/packages/carp_sync_client.php @@ -28,7 +28,8 @@ */ if($already_processed != 1) - if($config['installedpackages']['carpsettings']['config'] != "") { + if($config['installedpackages']['carpsettings']['config'] <> "" and + is_array($config['installedpackages']['carpsettings']['config'])) { $already_processed = 1; foreach($config['installedpackages']['carpsettings']['config'] as $carp) { if($carp['synchronizetoip'] <> "" ) { -- cgit v1.2.3