BUGFIX: if not logged in, don't show link to last game
authorArun Persaud <arun@nubati.net>
Sat, 6 Oct 2012 03:45:56 +0000 (20:45 -0700)
committerArun Persaud <arun@nubati.net>
Sat, 6 Oct 2012 03:45:56 +0000 (20:45 -0700)
This could be used to get the hash for a current game of a different user.

include/game.php

index 4fa950c6156cc327aa03eb42cf40283ac48fff1f..d43699b246cbb16e3fe55f83003e777de4237205 100644 (file)
@@ -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";
   }