summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-08-06 21:04:33 -0700
committerArun Persaud <arun@nubati.net>2009-08-06 21:04:33 -0700
commitba97ac2dae0f582781e713ee9aa8dae0449417a5 (patch)
tree45c431a1559009b00699ca19070256814bd6a0f5
parent7a11a1918c28f15403ad3f77254988fe9f25d82e (diff)
downloade-DoKo-ba97ac2dae0f582781e713ee9aa8dae0449417a5.tar.gz
e-DoKo-ba97ac2dae0f582781e713ee9aa8dae0449417a5.tar.bz2
e-DoKo-ba97ac2dae0f582781e713ee9aa8dae0449417a5.zip
BUGFIX: counted cancled games as active games in the statistics
instead of testing if the game was in 'pre' or 'play' modus I just tested for <> 'gameover' which also included games which where canceled because of e.g. five nines.
-rw-r--r--include/stats.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stats.php b/include/stats.php
index 1e6a033..f450880 100644
--- a/include/stats.php
+++ b/include/stats.php
@@ -190,7 +190,7 @@ if( !$content = getCache("cache/stats.html",60*60*24) )
" FROM Hand".
" LEFT JOIN User ON User.id=user_id".
" LEFT JOIN Game ON Game.id=game_id".
- " WHERE Game.status<>'gameover'".
+ " WHERE Game.status IN ('pre','play')".
" GROUP BY user_id".
" ORDER BY c DESC LIMIT 7" );
array_unshift($result,array("Name","Number of active games"));