Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Feb 17, 2022
1 parent f2ffd57 commit e657b26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public function create_email_table_from_commissions_query( $the_query ) {
$product_names = array();
foreach ( $product_ids as $id ) {
$product = wc_get_product( $id );
$product_names[] = ( is_a( $product, 'WC_Product' ) ? $product->get_formatted_name() : 'NA' );
$product_names[] = is_a( $product, 'WC_Product' ) ? $product->get_formatted_name() : 'NA';
}
$message .= '
<tr>
Expand Down

0 comments on commit e657b26

Please sign in to comment.