From ebc45d145230d86164bc1cec0aa02ac7ec7658d5 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 8 Mar 2014 23:02:31 +1100 Subject: [PATCH] Find end of outcome labels only if exists --- admin/settings/options-event.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/admin/settings/options-event.php b/admin/settings/options-event.php index 9eed7602..c724b28d 100644 --- a/admin/settings/options-event.php +++ b/admin/settings/options-event.php @@ -12,9 +12,6 @@ function sportspress_results_callback() { 'order' => 'ASC' ); $data = get_posts( $args ); - - $default = end( $data ); - reset( $data ); ?>
@@ -28,7 +25,17 @@ function sportspress_results_callback() { - +
>