summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2012-10-05 20:45:56 -0700
committerArun Persaud <arun@nubati.net>2012-10-05 20:45:56 -0700
commit2e52c991de66f3507759c84b76e9eaf152cccda3 (patch)
tree360fcf63d3117dacffa2c684d45dbee27271010e
parent14f6017a5b84d70320bde9d6e074ea8ac948a85e (diff)
downloade-DoKo-2e52c991de66f3507759c84b76e9eaf152cccda3.tar.gz
e-DoKo-2e52c991de66f3507759c84b76e9eaf152cccda3.tar.bz2
e-DoKo-2e52c991de66f3507759c84b76e9eaf152cccda3.zip
BUGFIX: if not logged in, don't show link to last game
This could be used to get the hash for a current game of a different user.
-rw-r--r--include/game.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/game.php b/include/game.php
index 4fa950c..d43699b 100644
--- a/include/game.php
+++ b/include/game.php
@@ -337,9 +337,10 @@ if($session)
echo "&nbsp;&nbsp;&nbsp;<a href=\"{$INDEX}?action=game&amp;me=$previous\">"._('previous')."</a> \n";
if($next)
echo "&nbsp;&nbsp;&nbsp;<a href=\"{$INDEX}?action=game&amp;me=$next\">"._('next')."</a> \n";
+
+ if($j != $i )
+ echo "&nbsp;&nbsp;&nbsp;<a href=\"{$INDEX}?action=game&amp;me=$lasthash\">"._('last')."</a> \n";
}
- if($j != $i )
- echo "&nbsp;&nbsp;&nbsp;<a href=\"{$INDEX}?action=game&amp;me=$lasthash\">last</a> \n";
echo "\n</div>\n";
}