From 26c07fd03d0bf3bdd6142f0474b625afcfae508b Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 24 Jun 2007 13:28:50 +0200 Subject: BUGFIX: include $call in $ruleset $call wasn't added everywhere where a new ruleset was defined; --- db.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'db.php') diff --git a/db.php b/db.php index 75cd8a0..a78afb6 100644 --- a/db.php +++ b/db.php @@ -705,12 +705,13 @@ function DB_get_hashes_by_session($session,$user) return $r; } -function DB_get_ruleset($dullen,$schweinchen) +function DB_get_ruleset($dullen,$schweinchen,$call) { $r = array(); $result = mysql_query("SELECT id FROM Rulesets WHERE". " dullen=".DB_quote_smart($dullen)." AND ". + " call=".DB_quote_smart($call)." AND ". " schweinchen=".DB_quote_smart($schweinchen)); if($result) $r = mysql_fetch_array($result,MYSQL_NUM); @@ -722,7 +723,8 @@ function DB_get_ruleset($dullen,$schweinchen) /* create new one */ $result = mysql_query("INSERT INTO Rulesets VALUES (NULL, NULL, ". DB_quote_smart($dullen).",". - DB_quote_smart($schweinchen). + DB_quote_smart($schweinchen).",". + DB_quote_smart($call). ", NULL)"); if($result) return mysql_insert_id(); -- cgit v1.2.3-18-g5258