T201704051123

This commit is contained in:
Leander
2017-04-05 11:23:59 +02:00
parent 57ba05a678
commit 9869c1c28a
3 changed files with 26 additions and 1 deletions

View File

@@ -32,7 +32,8 @@ class Question
$ca_position = array_search($a0, $this->answers);
$this->category_id = $cid;
$this->category = $c;
$db->query('UPDATE "Games" SET "current_right_answer" = $1 WHERE "ID" = $2', array($ca_position, $uid));
$db->query('UPDATE "Games" SET "current_right_answer" = $1, "current_category" = $2 WHERE "ID" = $3',
array($ca_position, $cid, $uid));
}
public static function get_next_question($db, $uid) {