summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-05-29 20:02:22 -0700
committerArun Persaud <arun@nubati.net>2008-05-29 20:02:22 -0700
commit0cd4c6af6c46af0be3efa882b50c22ad1de8766b (patch)
treeb407c87bc05078314f9d9fa57eccb5f84b0b0d4a
parentbe7fad04dae48d5fa0c209b84be3e9cf9b763472 (diff)
downloade-DoKo-0cd4c6af6c46af0be3efa882b50c22ad1de8766b.tar.gz
e-DoKo-0cd4c6af6c46af0be3efa882b50c22ad1de8766b.tar.bz2
e-DoKo-0cd4c6af6c46af0be3efa882b50c22ad1de8766b.zip
BUGIFX: wrong order in if-statement led to checking an (in some cases) uninitialized variable
changed the order and now everything should be fine. Signed-off-by: Arun Persaud <arun@nubati.net>
-rw-r--r--include/game.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/game.php b/include/game.php
index ceed8bb..679680d 100644
--- a/include/game.php
+++ b/include/game.php
@@ -155,7 +155,7 @@ switch($mystatus)
else
{
/* check the result, if player wants to join, got next stage, else cancel game */
- if($_REQUEST["in"] == "no" && !$skip)
+ if(!$skip && $_REQUEST["in"] == "no" )
{
/* cancel the game */
$message = "Hello, \n\n".