BUGFIX: some text was outside a div. also fixed a html issue.
[e-DoKo.git] / include / functions.php
index a338f388df0bb2822a654f3a13afb27e01d39a3a..eba8bfa4b14c764c66c6204250b84c25eb7304e0 100644 (file)
@@ -854,17 +854,18 @@ function display_user_menu()
                     " AND Game.player='$myid'".
                     " AND Game.status<>'gameover'".
                     " ORDER BY Game.session" );
                     " AND Game.player='$myid'".
                     " AND Game.status<>'gameover'".
                     " ORDER BY Game.session" );
-  if(DB_num_rows($result))
-      echo "It's your turn in these games:<br />\n";
 
   $i=0;
   while( $r = DB_fetch_array($result))
     {
       if($i==0)
 
   $i=0;
   while( $r = DB_fetch_array($result))
     {
       if($i==0)
-       echo "<div class=\"usermenu\">\n";
-
+       {
+         echo "<div class=\"usermenu\">\n";
+         echo "It's your turn in these games:<br />\n";
+       }
+      
       $i++;
       $i++;
-      echo "<a href=\"".$INDEX."?action=game&me=".$r[0]."\">game ".DB_format_gameid($r[1])." </a><br />\n";
+      echo "<a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">game ".DB_format_gameid($r[1])." </a><br />\n";
       if($i>4)
        {
          echo "...<br />\n";
       if($i>4)
        {
          echo "...<br />\n";