summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-06-08 11:06:19 -0700
committerArun Persaud <arun@nubati.net>2008-06-08 11:06:19 -0700
commit47fc7e1eec3fc99633a9085c9292ddf1ad065efd (patch)
treebbf57994524e63776affccf6d63b031a22d6ceb3 /include
parent36b10f3b006cfc919fdb657e1f06f41969082f0e (diff)
downloade-DoKo-47fc7e1eec3fc99633a9085c9292ddf1ad065efd.tar.gz
e-DoKo-47fc7e1eec3fc99633a9085c9292ddf1ad065efd.tar.bz2
e-DoKo-47fc7e1eec3fc99633a9085c9292ddf1ad065efd.zip
BUGFIX: user menu didn't list all games where it is your turn
games where you need to decide if you want to play should be listed in the menu on the left. The problem is that once somebody moved they won't show up in the list anymore, since from that point on the server keeps track of who needs to move next. Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 8307648..82b4bb6 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -851,7 +851,7 @@ function display_user_menu()
$result = DB_query("SELECT Hand.hash,Hand.game_id,Game.player from Hand".
" LEFT JOIN Game On Hand.game_id=Game.id".
" WHERE Hand.user_id='$myid'".
- " AND Game.player='$myid'".
+ " AND ( Game.player='$myid' OR ISNULL(Game.player) )".
" AND Game.status<>'gameover'".
" ORDER BY Game.session" );