projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUGFIX: show correct name of all players, when looking at games of other players
[e-DoKo.git]
/
include
/
game.php
diff --git
a/include/game.php
b/include/game.php
index 0a40bab00032266c0782db4f63c09923367cadaf..e20ea9a4fa67a09ae852ea3c08ead9aa0d0c02f8 100644
(file)
--- a/
include/game.php
+++ b/
include/game.php
@@
-1962,7
+1962,15
@@
switch($mystatus)
{
$oldcards = DB_get_all_hand($me);
$oldcards = mysort($oldcards,$gametype);
{
$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']);
foreach($oldcards as $card)
display_card($card,$PREF['cardset']);