diff --git a/.gitignore b/.gitignore index b7f691a..7b0f02e 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ Thumbs.db .swp.* src/config.php src/countBattles.txt +google9782eeb032983424.html diff --git a/countBattles.txt b/countBattles.txt index bbff031..b8d1607 100644 --- a/countBattles.txt +++ b/countBattles.txt @@ -1 +1 @@ -867 \ No newline at end of file +1255 \ No newline at end of file diff --git a/src/functions.php b/src/functions.php index 3e20f51..17f6830 100644 --- a/src/functions.php +++ b/src/functions.php @@ -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],