From 6e404391b9ca696b202d5e5e58070eb5285ad0e2 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 10 Jun 2016 11:10:04 +0200 Subject: [PATCH] debug --- src/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions.php b/src/functions.php index 6ae4e2c..ec02a8a 100644 --- a/src/functions.php +++ b/src/functions.php @@ -180,8 +180,8 @@ function get_battles_history($game){ function ELO_get_podium($arena){ global $lnMysql; $podium=array(); - echo "SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,8)."' AND active='1' ORDER BY ELO DESC, name"; - $rs=mysqli_query($lnMysql,"SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,8)."' AND active='1' ORDER BY ELO DESC, name"); + echo "SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,10)."' AND active='1' ORDER BY ELO DESC, name"; + $rs=mysqli_query($lnMysql,"SELECT id,name,description,ELO FROM bots WHERE game='".substr($arena,0,10)."' AND active='1' ORDER BY ELO DESC, name"); while($r = mysqli_fetch_row($rs)){ $podium[]=array( 'id' => $r[0],