From ce1506adecbb5045fb633f4572f8baed20e7cabb Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Sun, 12 Jul 2020 12:29:56 +0000 Subject: [PATCH] readme 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 ec89552..75da8a9 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -290,7 +290,7 @@ add_filter('template_include', 'mep_city_template_chooser'); function mep_get_event_ticket_price_by_name($event,$type) { $ticket_type = get_post_meta($event,'mep_event_ticket_type',true); - if(sizeof($ticket_type)){ + if(sizeof($ticket_type) > 0){ foreach ($ticket_type as $key => $val) { if ($val['option_name_t'] === $type) { return $val['option_price_t'];