Skip to content

Commit

Permalink
Merge 3c4ccdf into 1000210
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Harris committed Sep 18, 2020
2 parents 1000210 + 3c4ccdf commit d2f4d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sparkpost.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ static function add_log($wp_mail_args, $content, $response)
$content = json_decode($content);

//get subject
if (property_exists($content->content, 'subject')) {
if (isset($content->content) && property_exists($content->content, 'subject')) {
$subject = $content->content->subject;
} else {
} else if (isset($content->substitution_data) && property_exists($content->substitution_data, 'subject')) {
$subject = $content->substitution_data->subject;
}

Expand Down

0 comments on commit d2f4d69

Please sign in to comment.