Skip to content

Commit

Permalink
Merge pull request #28 from Fender123/master
Browse files Browse the repository at this point in the history
Fixed php warning caused by debug statements
  • Loading branch information
rajumsys committed Apr 7, 2016
2 parents 09e9d4b + 6231098 commit 65afc83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mailer.http.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ function sparkpostSend()
$this->edebug(sprintf('Making HTTP POST request to %s', $this->endpoint));
$result = $http->request($this->endpoint, $data);
$this->edebug('Response received');
$this->edebug('Response headers: ' . print_r($result['headers'], true));
$this->edebug('Response body: ' . print_r($result['body'], true));

return $this->handle_response($result);

Expand Down Expand Up @@ -148,6 +146,9 @@ protected function handle_response($response)
$this->edebug($response->get_error_messages());
return false;
}

$this->edebug('Response headers: ' . print_r($result['headers'], true));
$this->edebug('Response body: ' . print_r($result['body'], true));

$body = json_decode($response['body']);
if (property_exists($body, 'errors')) {
Expand Down

0 comments on commit 65afc83

Please sign in to comment.