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.
/* 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 */
{
/* 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
{