From 3b407a98fe0243cef87fdd64aeb4f567cca41f40 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Thu, 4 Feb 2010 20:25:16 -0800 Subject: [PATCH] BUGFIX: show correct name of all players, when looking at games of other players the name of the player who had the same cards wasn't displayed, instead "your cards where" was shown. --- include/game.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/game.php b/include/game.php index 0a40bab..e20ea9a 100644 --- a/include/game.php +++ b/include/game.php @@ -1962,7 +1962,15 @@ switch($mystatus) { $oldcards = DB_get_all_hand($me); $oldcards = mysort($oldcards,$gametype); - echo "Your cards were:
\n"; + + if(isset($_SESSION['id']) && $myid==$_SESSION['id']) + echo "Your cards were:
\n"; + else + { + $name = DB_get_name('userid',$myid); + echo "$name's were:
\n"; + } + foreach($oldcards as $card) display_card($card,$PREF['cardset']); -- 2.34.1