|
|
@ -24,13 +24,13 @@ if(isset($_GET['arena'])){
|
|
|
|
//check if arena is list
|
|
|
|
//check if arena is list
|
|
|
|
$currentArena = false;
|
|
|
|
$currentArena = false;
|
|
|
|
foreach($arenas as $arena){
|
|
|
|
foreach($arenas as $arena){
|
|
|
|
if($arena['id'] == $GET['arena']){
|
|
|
|
if($arena['id'] == $_GET['arena']){
|
|
|
|
$currentArena = $GET['arena'];
|
|
|
|
$currentArena = $_GET['arena'];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!$currentArena){
|
|
|
|
if(!$currentArena){
|
|
|
|
error("Wrong parameter");
|
|
|
|
error(404,"Wrong parameter");
|
|
|
|
die;
|
|
|
|
die;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|