Fixed inconsistency between Batch and Builder on Add Recipient

This commit is contained in:
Travis Swientek 2013-08-13 12:35:04 -07:00
parent 685a7351d5
commit 41c4d31ae5

View File

@ -26,7 +26,7 @@ class BatchMessage extends MessageBuilder{
$this->endpointUrl = $workingDomain . "/messages";
}
public function addToRecipient($address, $variables){
public function addToRecipient($address, $variables = null){
if($this->toRecipientCount == RECIPIENT_COUNT_LIMIT){
if($this->autoSend == false){
throw new TooManyParameters(TOO_MANY_RECIPIENTS);