Skip to content

Commit

Permalink
Merge pull request #1 from adaptdk/bugfix/check-if-bcc-is-array
Browse files Browse the repository at this point in the history
check if bcc is an array
  • Loading branch information
TheLifeofO authored Jun 14, 2023
2 parents df28b5e + 6cbb89b commit 514f700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sendgrid/class-sendgrid-translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private static function set_bccs_v3(
foreach ( $email_v2->bcc as $index => $address ) {
// Check if "bcc name" is set
$bcc_name = null;
if ( self::is_valid_string( $email_v2->bccName[ $index ] ) ) {
if ( is_array($email_v2->bccName) && self::is_valid_string( $email_v2->bccName[ $index ] ) ) {
$bcc_name = trim( $email_v2->bccName[ $index ] );
}

Expand Down

0 comments on commit 514f700

Please sign in to comment.