diff options
author | arun <arun@nubati.net> | 2007-06-12 11:37:28 +0000 |
---|---|---|
committer | arun <arun> | 2007-06-12 11:37:28 +0000 |
commit | ff9effad42c5222df141e9c72f09aea315c15805 (patch) | |
tree | 7547f17a543d821896dde978edf054089136f2d0 /index.php | |
parent | 7c54cc81a26bb8a58a0b5ea4dbf4e819fba65d11 (diff) | |
download | e-DoKo-ff9effad42c5222df141e9c72f09aea315c15805.tar.gz e-DoKo-ff9effad42c5222df141e9c72f09aea315c15805.tar.bz2 e-DoKo-ff9effad42c5222df141e9c72f09aea315c15805.zip |
BUGFIX: adding a new game had a bug in the INSERT statement; wedding offset in can_call had wrong sign
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -94,7 +94,7 @@ if(myisset("new")) $ruleset = DB_get_ruleset_by_gameid($followup); /* just copy ruleset from old game, this way no manipulation is possible */ if($session) - mysql_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1','pre',". + mysql_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1','1','pre',". "'$ruleset','$session' ,NULL)"); else { @@ -102,12 +102,12 @@ if(myisset("new")) $max = DB_get_max_session(); $max++; mysql_query("UPDATE Game SET session='".$max."' WHERE id=".DB_quote_smart($followup)); - mysql_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1','pre',". + mysql_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1','1','pre',". "'$ruleset','$max' ,NULL)"); } } else - mysql_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1','pre', ". + mysql_query("INSERT INTO Game VALUES (NULL, NULL, '$randomNRstring', 'normal', NULL,NULL,'1','1','pre', ". "'$ruleset',NULL ,NULL)"); $game_id = mysql_insert_id(); |