From e2bfc291509144dd27e41d8eb27c874738d85e92 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sun, 12 Jun 2016 21:17:28 +0200 Subject: [PATCH] fix php --- src/arenas/connectFour/act.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/arenas/connectFour/act.php b/src/arenas/connectFour/act.php index b9d1700..3a42ef0 100644 --- a/src/arenas/connectFour/act.php +++ b/src/arenas/connectFour/act.php @@ -127,9 +127,8 @@ switch ($_POST['act']){ //send query $tempPlayer = get_IA_Response($botUrl,$postDatas); - print_r($tempPlayer); - if(isset($tempPlayer['arrponseArr']['play'])){ - $anwserPlayer = $tempPlayer['arrponseArr']['play']; + if(isset($tempPlayer['responseArr']['play'])){ + $anwserPlayer = $tempPlayer['responseArr']['play']; }else{ $anwserPlayer = -1; }