From: Arun Persaud Date: Fri, 3 Apr 2009 20:07:47 +0000 (-0700) Subject: BUGFIX: showed cancled games in user menu X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf3b418ca71babb4336243ccdd741bbd5970d4d;p=e-DoKo.git BUGFIX: showed cancled games in user menu used to test for 'pre' or 'play' games by doing a ...!='gameover', this doesn't work anymore with canceled games being another option for the game status. --- diff --git a/include/functions.php b/include/functions.php index d99f9c8..7bdfd31 100644 --- a/include/functions.php +++ b/include/functions.php @@ -942,7 +942,7 @@ function display_user_menu($id) " LEFT JOIN Game On Hand.game_id=Game.id". " WHERE Hand.user_id='$id'". " AND ( Game.player='$id' OR ISNULL(Game.player) )". - " AND Game.status<>'gameover'". + " AND ( Game.status='pre' OR Game.status='play' )". " ORDER BY Game.session" ); $i=0;