Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Harris committed Sep 18, 2020
1 parent d3dc012 commit 4c9dd95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparkpost.class.php
Expand Up @@ -213,7 +213,7 @@ static function add_log($wp_mail_args, $content, $response)
$content = json_decode($content);

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

0 comments on commit 4c9dd95

Please sign in to comment.