Skip to content

Commit

Permalink
applying else if condition to second subject possibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Harris committed Sep 18, 2020
1 parent 4c9dd95 commit 3c4ccdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparkpost.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static function add_log($wp_mail_args, $content, $response)
//get 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 3c4ccdf

Please sign in to comment.