BUGFIX: got rid of double insert of notes.
authorArun Persaud <arun@nubati.net>
Sun, 29 Jun 2008 22:52:32 +0000 (15:52 -0700)
committerArun Persaud <arun@nubati.net>
Sun, 29 Jun 2008 22:52:32 +0000 (15:52 -0700)
when you wrote a personal note on your turn, it got inserted into the database twice

Signed-off-by: Arun Persaud <arun@nubati.net>
include/game.php

index 2ab444b1aa0d418007efe0407f9479e7071c22cb..95c055d5a0c42aab25dab9bb7cf7e50af257a843 100644 (file)
@@ -1363,14 +1363,6 @@ switch($mystatus)
                  $comment = $commentSchweinchen . $comment;
              };
 
-           /* check for note */
-           if(myisset('note'))
-             {
-               $note = $_REQUEST['note'];
-               if($note != '')
-                 DB_insert_note($note,$gameid,$myid);
-             };
-
            /* display played card */
            $pos = DB_get_pos_by_hash($me);
            if($sequence==1)