From 69c93019297e55d16b12b7474b183e93cb622adc Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Wed, 2 Nov 2022 03:48:01 +0000 Subject: [PATCH] function update --- inc/mep_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);