This commit is contained in:
Gnieark 2016-06-10 10:06:46 +02:00
parent ddaacde5ef
commit a2f20c383b
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit c2bde34e58caa500b8fb2f7e14fc9765596cdf6d
Subproject commit 7c8b786228bb9e1561ff60a2d6f7f6ce91be6fee

View File

@ -180,7 +180,7 @@ function get_battles_history($game){
function ELO_get_podium($arena){
global $lnMysql;
$podium=array();
$rs=mysqli_query($lnMysql,"SELECT id,name,description,ELO FROM bots WHERE game='".$arena."' 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");
while($r = mysqli_fetch_row($rs)){
$podium[]=array(
'id' => $r[0],