Changeset 686 for trunk/phpbms/modules/mailchimp/scheduler_list_sync.php
- Timestamp:
- 12/21/09 16:58:44 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/mailchimp/scheduler_list_sync.php
r684 r686 1 1 <?php 2 2 //uncomment if need debug 3 //if(!class_exists("appError")) 4 // include_once("../../include/session.php"); 3 if(!class_exists("appError")) 4 include_once("../../include/session.php"); 5 5 6 include("include/MCAPI.class.php");//for MCAPI CLASS (listSync class uses it) 6 7 include("include/list_sync.php");//for listSync class … … 12 13 MAILCHIMP_LIST_ID, 13 14 MAILCHIMP_LAST_SYNC_DATE, 14 MAILCHIMP_BATCH_LIMIT,15 NULL, 15 16 MAILCHIMP_SECURE 16 17 ); … … 20 21 if(isset($response["type"])){ 21 22 22 if($response["type"] == "error")23 if($response["type"] != "success") 23 24 foreach($response["details"] AS $errorArray){ 24 25 25 $message = "MailChimp sync failure: ".$errorArray["message"]." (".$errorArray["code"].")";26 $message = "MailChimp sync ".$response["type"].": ".$errorArray["message"]." (".$errorArray["code"].")"; 26 27 $log = new phpbmsLog($message, "SCHEDULER", NULL, $db); 27 28