diff options
Diffstat (limited to 'include/game.php')
-rw-r--r-- | include/game.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/game.php b/include/game.php index 0ef5a3e..dcabc67 100644 --- a/include/game.php +++ b/include/game.php @@ -121,7 +121,7 @@ set_gametype('normal'); echo "<form action=\"index.php?action=game&me=$me\" method=\"post\">\n"; /* handle user notes (only possible while game is running)*/ -if( $mystatus!='gameover' ) +if( $mystatus!='gameover' ) if(myisset('note')) { $note = $_REQUEST['note']; @@ -130,15 +130,6 @@ if( $mystatus!='gameover' ) DB_insert_note($note,$gameid,$myid); }; -/* make sure that we don't show the notes to the wrong person - * (e.g. other people looking at an old game) - */ -if( $mystatus != 'gameover' || - ( $mystatus == 'gameover' && - isset($_SESSION['id']) && - $myid == $_SESSION['id'])) - output_user_notes($myid,$gameid,$mystatus); - /* handle calls, output a comment to show when the call was made */ /* initialize comments */ $comment = ''; @@ -2177,6 +2168,15 @@ if(sizeof($other_game_ids)>0 && $mystatus=='gameover') echo "</div>\n"; /* end gameinfo */ +/* make sure that we don't show the notes to the wrong person + * (e.g. other people looking at an old game) + */ +if( $mystatus != 'gameover' || + ( $mystatus == 'gameover' && + isset($_SESSION['id']) && + $myid == $_SESSION['id'])) + output_user_notes($myid,$gameid,$mystatus); + echo "</form>\n"; $gamestatus = DB_get_game_status_by_gameid($gameid); |