removed one debug message; added timestamp update for game when playing a card
[e-DoKo.git] / db.php
diff --git a/db.php b/db.php
index 31098d4ea40dd430851e7f2c78ec95b052a876bd..b3651bd4beffc7bf0e99be833f12f2efcee52643 100644 (file)
--- a/db.php
+++ b/db.php
@@ -446,6 +446,13 @@ function DB_get_all_names()
   return $names;
 }
 
+function DB_update_game_timestamp($gameid)
+{
+  mysql_query("UPDATE Game SET mod_date = CURRENT_TIMESTAMP WHERE id=".DB_quote_smart($gameid));
+  return;
+}
+
+
 function DB_update_user_timestamp($userid)
 {
   mysql_query("UPDATE User SET last_login = CURRENT_TIMESTAMP WHERE id=".DB_quote_smart($userid));