Skip to content

Commit

Permalink
Update mt-reports.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Dec 26, 2023
1 parent 74d5da3 commit cb080d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mt-reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,15 +736,15 @@ function mt_get_report_data( $type, $purchase_id, $ticket_id, $ticket ) {
case 'mt-first':
$first = get_post_meta( $purchase_id, '_first_name', true );
if ( ! $first ) {
$name = explode( ' ', get_the_title( $purchase_id ) );
$name = explode( ' ', get_the_title( $purchase_id ) );
$first = $name[0];
}
$value = $first;
break;
case 'mt-last':
$last = get_post_meta( $purchase_id, '_last_name', true );
if ( ! $last ) {
$name = explode( ' ', get_the_title( $purchase_id ) );
$name = explode( ' ', get_the_title( $purchase_id ) );
$last = end( $name );
}
$value = $last;
Expand Down

0 comments on commit cb080d7

Please sign in to comment.