summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/functions.php b/include/functions.php
index a338f38..eba8bfa 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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";