BUGIFX: wrong order in if-statement led to checking an (in some cases) uninitialized...
authorArun Persaud <arun@nubati.net>
Fri, 30 May 2008 03:02:22 +0000 (20:02 -0700)
committerArun Persaud <arun@nubati.net>
Fri, 30 May 2008 03:02:22 +0000 (20:02 -0700)
changed the order and now everything should be fine.

Signed-off-by: Arun Persaud <arun@nubati.net>
include/game.php

index ceed8bbba49d25191fe4cf940d9358b8d7d95c3e..679680d44a267345141a7ecf732d160b56f04ccd 100644 (file)
@@ -155,7 +155,7 @@ switch($mystatus)
     else
       {
        /* check the result, if player wants to join, got next stage, else cancel game */
     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".
          {
            /* cancel the game */
            $message = "Hello, \n\n".