summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-07-24 21:35:57 -0700
committerArun Persaud <arun@nubati.net>2009-07-24 21:35:57 -0700
commit522e61d6c5c04dac9c3254ddd2fd7ebb82a1a104 (patch)
treeba55839f53a3c976e6d793dddda644e99bf681ba /include/game.php
parent8413d51c55c34d83798127c9ba39358d86902c51 (diff)
downloade-DoKo-522e61d6c5c04dac9c3254ddd2fd7ebb82a1a104.tar.gz
e-DoKo-522e61d6c5c04dac9c3254ddd2fd7ebb82a1a104.tar.bz2
e-DoKo-522e61d6c5c04dac9c3254ddd2fd7ebb82a1a104.zip
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.
Diffstat (limited to 'include/game.php')
-rw-r--r--include/game.php11
1 files changed, 6 insertions, 5 deletions
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 "<p>The game has been canceled because ".DB_get_name('userid',$nines).
+ " has five or more nines and nobody is playing solo.</p>\n";
+ echo "</div>\n";
+ break;
}
else if($poverty==1) /* one person has poverty */
{
@@ -957,8 +958,8 @@ switch($mystatus)
/* update game status */
cancel_game('trump',$gameid);
- echo "<p style=\"background-color:red\";>Game ".DB_format_gameid($gameid)." has been canceled.<br /><br /></p>";
- return;
+ echo "<p class=\"message\";>Game ".DB_format_gameid($gameid)." has been canceled.<br /><br /></p>";
+ break;
}
else
{