Skip to content

Commit

Permalink
Make #_IS_REGISTERED_PENDING and #_IS_REGISTERED_APPROVED work as exp…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
Franky Van Liedekerke committed Mar 29, 2024
1 parent fc77954 commit 65703ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eme-rsvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ function eme_get_pending_booking_ids_by_bookingids( $booking_ids ) {
global $wpdb;
$bookings_table = EME_DB_PREFIX . EME_BOOKINGS_TBNAME;
if (eme_is_list_of_int($booking_ids) ) {
return $wpdb->get_col( "SELECT booking_id FROM $bookings_table WHERE booking_id IN ($booking_ids) AND status IN (%d,%d)", EME_RSVP_STATUS_PENDING,EME_RSVP_STATUS_USERPENDING );
return $wpdb->get_col( $wpdb->prepare( "SELECT booking_id FROM $bookings_table WHERE booking_id IN ($booking_ids) AND status IN (%d,%d)", EME_RSVP_STATUS_PENDING,EME_RSVP_STATUS_USERPENDING ) );
} else {
return 0;
}
Expand Down

0 comments on commit 65703ef

Please sign in to comment.