LAYOUT: make html standard conform in debug mode
[e-DoKo.git] / include / functions.php
index a338f388df0bb2822a654f3a13afb27e01d39a3a..7b29a28fe311dbd12e27fd1e2af53d1a6250cc5d 100644 (file)
@@ -734,7 +734,7 @@ function display_table ()
       if(!$debug)
        echo "   $name \n";
       else
-       echo "   <a href=\"".$INDEX."?action=game&me=".$hash."\">$name</a>\n";
+       echo "   <a href=\"".$INDEX."?action=game&amp;me=".$hash."\">$name</a>\n";
 
       /* add hints for poverty, wedding, solo, etc */
       if( $gametype != "solo")
@@ -854,17 +854,18 @@ function display_user_menu()
                     " 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)
-       echo "<div class=\"usermenu\">\n";
-
+       {
+         echo "<div class=\"usermenu\">\n";
+         echo "It's your turn in these games:<br />\n";
+       }
+      
       $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";