From 6206ef89ad9a9a1a541ecb67971815d11f12199b Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 16 Mar 2009 22:06:21 -0700 Subject: 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. --- include/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/db.php') 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 -- cgit v1.2.3-18-g5258