From d0f2ae64b8b23306d3a58f15631d92219cc579c8 Mon Sep 17 00:00:00 2001 From: gnieark Date: Sat, 12 Dec 2015 11:00:35 +0100 Subject: [PATCH] debog --- src/arenas/Battleship/act.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php index ac182bc..df35b9e 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -8,12 +8,12 @@ switch ($_POST['act']){ // key,min,max array('gridWidth',1,100), array('gridHeight',1,100), - array('nbShip1',1,10), - array('nbShip2',1,10), - array('nbShip3',1,10), - array('nbShip4',1,10), - array('nbShip5',1,10), - array('nbShip6',1,10) + array('nbShip1',0,10), + array('nbShip2',0,10), + array('nbShip3',0,10), + array('nbShip4',0,10), + array('nbShip5',0,10), + array('nbShip6',0,10) ); foreach($postParamsWanted as $p){ @@ -29,7 +29,7 @@ switch ($_POST['act']){ OR ($value >= $p[2]) ) { - error(500,'wrong parameters'.$p[0]); + error(500,'wrong parameters '.$p[0]); die; } $postValues[$p[0]]=$value;