This commit is contained in:
gnieark 2016-06-20 00:01:35 +02:00
parent 9c74f4cef4
commit 9dfefacef9

View File

@ -288,7 +288,8 @@ switch ($_POST['act']){
}
if(!preg_match('/^[0-9]+,[0-9]+$/',$anwserPlayerJson['play'])){
if ((!isset($anwserPlayerJson['play']))
OR (!preg_match('/^[0-9]+,[0-9]+$/',$anwserPlayerJson['play']))){
echo json_encode(array(
'target' => '',
'log' => $fullLogs.$currentBot['name']." a fait une réponse non conforme, il perd."));