function update

This commit is contained in:
magepeopleteam 2022-11-02 03:48:01 +00:00
parent b4f5a0ddf5
commit 69c9301929
1 changed files with 1 additions and 1 deletions

View File

@ -2362,7 +2362,7 @@ if (!function_exists('mep_wc_price')) {
if (!function_exists('mep_get_event_total_seat')) {
function mep_get_event_total_seat($event_id, $m = null, $t = null) {
$upcoming_date = !empty(mep_get_event_upcoming_date($event_id)) ? mep_get_event_upcoming_date($event_id) : '';
$upcoming_date = !empty($m) && !empty(mep_get_event_upcoming_date($event_id)) ? mep_get_event_upcoming_date($event_id) : '';
$total_seat = apply_filters('mep_event_total_seat_counts', mep_event_total_seat($event_id, 'total'), $event_id);
$total_resv = apply_filters('mep_event_total_resv_seat_count', mep_event_total_seat($event_id, 'resv'), $event_id);