summaryrefslogtreecommitdiffstats
path: root/include/functions.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-04-03 13:07:47 -0700
committerArun Persaud <arun@nubati.net>2009-04-03 13:07:47 -0700
commitcdf3b418ca71babb4336243ccdd741bbd5970d4d (patch)
tree17b23cc305291ea73b06a6161df7e9bab8d6610b /include/functions.php
parent4209593d06a237995d8cc0ba527188a15cbd0376 (diff)
downloade-DoKo-cdf3b418ca71babb4336243ccdd741bbd5970d4d.tar.gz
e-DoKo-cdf3b418ca71babb4336243ccdd741bbd5970d4d.tar.bz2
e-DoKo-cdf3b418ca71babb4336243ccdd741bbd5970d4d.zip
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.
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
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;