BUGFIX: fixed undefined variable when displaying tricks menu
authorArun Persaud <arun@nubati.net>
Thu, 17 Nov 2011 05:28:33 +0000 (21:28 -0800)
committerArun Persaud <apersaud@lbl.gov>
Thu, 17 Nov 2011 05:28:33 +0000 (21:28 -0800)
include/game.php

index 6d5b169119b0539828bb9cb8d1214ef329e27fbf..1edcb85d5166ead4e6229f1fd274de82e7d056b5 100644 (file)
@@ -405,6 +405,7 @@ switch($mystatus)
     /* output tricks */
     while($r = DB_fetch_array($result))
       {
     /* output tricks */
     while($r = DB_fetch_array($result))
       {
+       $trick=$r[0];
        if($trick!=$lasttrick)
          echo "  <li onclick=\"hl('$trickNR');\" class=\"old\"><a href=\"#\">"._('Trick')." $trickNR</a></li>\n";
        else if($trick==$lasttrick)
        if($trick!=$lasttrick)
          echo "  <li onclick=\"hl('$trickNR');\" class=\"old\"><a href=\"#\">"._('Trick')." $trickNR</a></li>\n";
        else if($trick==$lasttrick)