From aa7da41d4c0aa25701a6a0e36af2936a2c6ef6ae Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 18 Dec 2015 20:28:21 +0100 Subject: [PATCH] fix php parse error --- src/arenas/Battleship/act.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php index 3057bd0..e586f97 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -229,7 +229,7 @@ switch ($_POST['act']){ 'ship4' => $_SESSION['ship4'], 'ship5' => $_SESSION['ship5'], 'ship6' => $_SESSION['ship6'], - 'your_hits' => json_encode($_SESSION['hits'][$player]), + 'your_hits' => json_encode($_SESSION['hits'][$currentPlayer]), 'his_hits' => json_encode($_SESSION['hits'][$opponent]) );