From cdf3b418ca71babb4336243ccdd741bbd5970d4d Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Fri, 3 Apr 2009 13:07:47 -0700 Subject: 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. --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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; -- cgit v1.2.3-18-g5258