Skip to content

Commit

Permalink
Update camptix-tweaks.php
Browse files Browse the repository at this point in the history
reverse coalescing operator
  • Loading branch information
pkevan authored Oct 8, 2024
1 parent 9daab28 commit 5960744
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,8 @@ function apply_show_all_filters( $query ) {
return;
}

$filter_attendee = isset( $_GET['tix_show_attendees'] ) ?? $_GET['tix_show_attendees'];
$filter_ticket = isset( $_GET['tix_show_ticket_type'] ) ?? (int) $_GET['tix_show_ticket_type'];
$filter_attendee = isset( $_GET['tix_show_attendees'] ) ? $_GET['tix_show_attendees'] : '';
$filter_ticket = isset( $_GET['tix_show_ticket_type'] ) ? (int) $_GET['tix_show_ticket_type'] : '';

if ( empty( $filter_attendee ) && empty( $filter_ticket ) ) {
return;
Expand Down Expand Up @@ -1101,7 +1101,7 @@ function add_show_ticket_type_filter() {
return;
}

$filter = isset( $_GET['tix_show_ticket_type'] ) ?? $_GET['tix_show_ticket_type'];
$filter = isset( $_GET['tix_show_ticket_type'] ) ? $_GET['tix_show_ticket_type'] : '';

$all_tickets = get_posts( array( 'post_type' => 'tix_ticket' ) );
?>
Expand Down

0 comments on commit 5960744

Please sign in to comment.