BUGFIX: show correct name of all players, when looking at games of other players
[e-DoKo.git] / include / game.php
index 0a40bab00032266c0782db4f63c09923367cadaf..e20ea9a4fa67a09ae852ea3c08ead9aa0d0c02f8 100644 (file)
@@ -1962,7 +1962,15 @@ switch($mystatus)
       {
        $oldcards = DB_get_all_hand($me);
        $oldcards = mysort($oldcards,$gametype);
-       echo "Your cards were: <br />\n";
+
+       if(isset($_SESSION['id']) && $myid==$_SESSION['id'])
+         echo "Your cards were: <br />\n";
+       else
+         {
+           $name = DB_get_name('userid',$myid);
+           echo "$name's were: <br />\n";
+         }
+
        foreach($oldcards as $card)
          display_card($card,$PREF['cardset']);