From 020b8782000dc2d60279e7de4dfc6b1f83414c7b Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Sun, 31 Mar 2019 09:06:53 +0000 Subject: [PATCH] fix non-numeric value error notice --- woocommerce-event-press.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php index 9ccfa2f..434edc9 100644 --- a/woocommerce-event-press.php +++ b/woocommerce-event-press.php @@ -916,7 +916,7 @@ $leftt = ($leftt+$llft); } $leftt = $leftt-$res; }else{ - $leftt = $event_meta['mep_total_seat'][0]- $total_book; + $leftt = (int) $event_meta['mep_total_seat'][0]- (int) $total_book; } return $leftt; }