Merge pull request #77 from gnieark/dev

Dev
This commit is contained in:
Gnieark 2016-06-10 11:17:51 +02:00 committed by GitHub
commit 70355018af
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ Thumbs.db
.swp.*
src/config.php
src/countBattles.txt
google9782eeb032983424.html

View File

@ -1 +1 @@
867
1255

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,10)."' AND active='1' ORDER BY ELO DESC, name");
while($r = mysqli_fetch_row($rs)){
$podium[]=array(
'id' => $r[0],