From: Arun Persaud Date: Fri, 5 Feb 2010 04:25:16 +0000 (-0800) Subject: BUGFIX: show correct name of all players, when looking at games of other players X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b407a98fe0243cef87fdd64aeb4f567cca41f40;p=e-DoKo.git 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. --- 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']);