From: Arun Persaud Date: Sat, 25 Jul 2009 04:35:57 +0000 (-0700) Subject: BUGFIX: html output was messed up by some return statements X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=522e61d6c5c04dac9c3254ddd2fd7ebb82a1a104 BUGFIX: html output was messed up by some return statements instead of using return, we now use a break, this has the advantage that extra output (such as menus) will still be present and the html should be ok. --- diff --git a/include/game.php b/include/game.php index 7335382..30abe7d 100644 --- a/include/game.php +++ b/include/game.php @@ -610,9 +610,10 @@ switch($mystatus) /* update game status */ cancel_game('nines',$gameid); - echo "The game has been canceled because ".DB_get_name('userid',$nines). - " has five or more nines and nobody is playing solo.\n"; - return; + echo "

The game has been canceled because ".DB_get_name('userid',$nines). + " has five or more nines and nobody is playing solo.

\n"; + echo "\n"; + break; } else if($poverty==1) /* one person has poverty */ { @@ -957,8 +958,8 @@ switch($mystatus) /* update game status */ cancel_game('trump',$gameid); - echo "

Game ".DB_format_gameid($gameid)." has been canceled.

"; - return; + echo "

Game ".DB_format_gameid($gameid)." has been canceled.

"; + break; } else {