projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bbeb84
)
BUGIFX: sort game list by session in user menu
author
Arun Persaud
<arun@nubati.net>
Fri, 14 Dec 2007 10:41:47 +0000
(11:41 +0100)
committer
Arun Persaud
<arun@nubati.net>
Fri, 14 Dec 2007 10:41:47 +0000
(11:41 +0100)
if it is your turn those games are shown in the user menu, but where not sorted by sessions. fixed now
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index a9ea34bc9570e9efee9bc50ee96a799a0b040c54..16ca508bb70d8dfca1d2452713f53db4df030294 100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-812,7
+812,8
@@
function display_user_menu()
" LEFT JOIN Game On Hand.game_id=Game.id".
" WHERE Hand.user_id='$myid'".
" AND Game.player='$myid'".
- " AND Game.status<>'gameover'" );
+ " AND Game.status<>'gameover'".
+ " ORDER BY Game.session" );
if(mysql_num_rows($result))
echo "<hr />It's your turn in these games:<br />\n";