summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-03-16 22:06:21 -0700
committerArun Persaud <arun@nubati.net>2009-03-29 10:47:55 -0700
commit6206ef89ad9a9a1a541ecb67971815d11f12199b (patch)
tree86af68a4ce38a5c88d3c491a707b6df8c9ded337 /include/db.php
parent3fd01c7b9fa78fb08ca1ad61c1de850b9a6b9870 (diff)
downloade-DoKo-6206ef89ad9a9a1a541ecb67971815d11f12199b.tar.gz
e-DoKo-6206ef89ad9a9a1a541ecb67971815d11f12199b.tar.bz2
e-DoKo-6206ef89ad9a9a1a541ecb67971815d11f12199b.zip
BUGFIX: store canceled games, don't delete them
deleting the games could result in the same people getting the same hand redealt over and over again. By just keeping track of the hands in the game table, this problem should be gone. Fixed issue #50.
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/db.php b/include/db.php
index b84a566..ef902ad 100644
--- a/include/db.php
+++ b/include/db.php
@@ -971,7 +971,7 @@ function DB_is_session_active($session)
{
$r = DB_query_array("SELECT COUNT(*) FROM Game ".
" WHERE session=$session ".
- " AND status<>'gameover' ");
+ " AND status IN ('pre','play') ");
if($r)
return $r[0];
else