fix test existance arene
This commit is contained in:
parent
20a547c05c
commit
a04450f951
12
src/act.php
12
src/act.php
|
@ -7,10 +7,14 @@ switch($_POST['act']){
|
||||||
$alerts="";
|
$alerts="";
|
||||||
|
|
||||||
//botGame -> doit exister
|
//botGame -> doit exister
|
||||||
if(!in_array($_POST['botGame'],$arenas)){
|
$arenaExists=false;
|
||||||
//pour le Debug
|
foreach($arenas as $arena){
|
||||||
print_r($_POST);
|
if($_POST['botGame'] == $arena['id']){
|
||||||
print_r($arenas);
|
$arenaExists=true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!$arenaExists){
|
||||||
error(404,"wrong post parameter");
|
error(404,"wrong post parameter");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user