CLEANUP: counting points, prepare for keeping track of game points
[e-DoKo.git] / db.php
diff --git a/db.php b/db.php
index a78afb6aa744d58550385e0084abc56e69978ddd..1c20b8e2051272b685e055e41d9709ee7256c2a7 100644 (file)
--- a/db.php
+++ b/db.php
@@ -466,7 +466,7 @@ function DB_get_current_trickid($gameid)
   
   if(!$sequence || $sequence==4)
     {
-      mysql_query("INSERT INTO Trick VALUES (NULL,NULL,NULL, ".DB_quote_smart($gameid).")");
+      mysql_query("INSERT INTO Trick VALUES (NULL,NULL,NULL, ".DB_quote_smart($gameid).",NULL)");
       $trickid  = mysql_insert_id();
       $sequence = 1;
       $number++;