From 3b47093a3a9123bcd06da4197f5e78ee1f964d3c Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 19 Feb 2018 22:56:00 +0100 Subject: [PATCH] fix broken function current_league($season) sql select --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index daf4622..06c3955 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1063,7 +1063,7 @@ function current_league($season) FROM ' . FOOTB_MATCHES . ' AS m INNER JOIN ' . FOOTB_BETS . ' AS b ON (b.season = m.season AND b.league = m.league ' . $user_spec . ") WHERE m.season = $season - AND league < 51 + AND m.league < 51 AND m.status in (0,1,2) ORDER BY m.match_datetime ASC LIMIT 1";