diff --git a/inc/mep_functions.php b/inc/mep_functions.php index 1b6fc96..db9afe8 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -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);