From 2264646817a59a6e3aefa835c492938dde4f25ee Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 5 Jan 2008 22:24:10 +0100 Subject: [PATCH 1/1] BUGFIX: didn't set next player correctly during startup in db.game the next player is set with his user.id, but I used the position at the table in some places. fixed now Signed-off-by: Arun Persaud --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 6729d56..eb52e4e 100644 --- a/index.php +++ b/index.php @@ -833,7 +833,8 @@ else if(myisset("me")) { $To = DB_get_email_by_pos_and_gameid($who,$gameid); $userhash = DB_get_hash_from_game_and_pos($gameid,$who); - DB_set_player_by_gameid($gameid,$who); + $userid = DB_get_userid_by_email($To); + DB_set_player_by_gameid($gameid,$userid); $message = "Someone has poverty, it's your turn to decide, if you want to take the trump. Please visit:". " ".$HOST.$INDEX."?me=".$userhash."\n\n" ; @@ -913,7 +914,8 @@ else if(myisset("me")) { $To = DB_get_email_by_pos_and_gameid($who,$gameid); $userhash = DB_get_hash_from_game_and_pos($gameid,$who); - DB_set_player_by_gameid($gameid,$who); + $userid = DB_get_userid_by_email($To); + DB_set_player_by_gameid($gameid,$userid); $message = "Someone has poverty, it's your turn to decide, ". "if you want to take the trump. Please visit:". -- 2.25.1