Changeset 680 for trunk/phpbms/modules
- Timestamp:
- 12/15/09 13:08:42 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/mailchimp/include/list_sync.php
r677 r680 115 115 116 116 $tempArray["message"] = $message; 117 if($errorCode !== NULL) 118 $tempArray["code"] = $errorCode; 117 $tempArray["code"] = $errorCode; 119 118 120 119 $this->errors[] = $tempArray; … … 276 275 * pull all the subscribed 277 276 */ 277 $i = 0; 278 278 do{ 279 279 $valuesClause = ""; 280 280 281 $members = $this->api->listMembers($this->listId, 'subscribed', NULL, 0, $this->batchLimit);281 $members = $this->api->listMembers($this->listId, 'subscribed', NULL, $i*$this->batchLimit, $this->batchLimit*($i+1)); 282 282 283 283 if($this->api->errorCode){ … … 294 294 * Put the subscribed into a temporary table 295 295 */ 296 $insertStatement = " 297 INSERT INTO 298 `tempEmail` 299 (`email`) 300 VALUES 301 ".$valuesClause; 302 303 $this->db->query($insertStatement); 304 296 if($valuesClause){ 297 $insertStatement = " 298 INSERT INTO 299 `tempEmail` 300 (`email`) 301 VALUES 302 ".$valuesClause; 303 304 $this->db->query($insertStatement); 305 }//end if 306 307 $i++; 305 308 }while(count($members) == $this->batchLimit); 306 309