From 522e61d6c5c04dac9c3254ddd2fd7ebb82a1a104 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Fri, 24 Jul 2009 21:35:57 -0700 Subject: 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. --- include/game.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/game.php') 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 { -- cgit v1.2.3-18-g5258