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/cancelgame.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cancelgame.php') diff --git a/include/cancelgame.php b/include/cancelgame.php index 2240203..71bb58b 100644 --- a/include/cancelgame.php +++ b/include/cancelgame.php @@ -48,8 +48,8 @@ if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */ mymail($user,$subject,$message); } - /* delete everything from the dB */ - DB_cancel_game($me); + /* set gamestatus to canceled */ + cancel_game('timedout',$gameid); echo "

Game ".DB_format_gameid($gameid). " has been canceled.

"; -- cgit v1.2.3-18-g5258