From e445b3ff397df6fdda3ec5d807e922aa75ff0d68 Mon Sep 17 00:00:00 2001 From: Leander Date: Tue, 4 Apr 2017 12:43:07 +0200 Subject: [PATCH] T201704041243 --- answer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/answer.php b/answer.php index bd997c4..167a1cd 100644 --- a/answer.php +++ b/answer.php @@ -41,7 +41,7 @@ if($uid == '') { ['data'][0]['current_score']; $new_points = $old_points + $score; $db->query('UPDATE "Games" SET "current_score" = $1 WHERE "ID" = $2', array($new_points, $uid)); - $results = array('correct' => $correct, 'correct_answer' => $correct_answer, 'score' => $score); + $results = array('correct' => $correct, 'correctPos' => $correct_answer, 'score' => $score); $old_time = $db->query('SELECT "total_time" FROM "Games" WHERE "ID" = $1', array($uid)) ['data'][0]['total_time']; $new_time = $old_time + $time;