From 82d97b81b53e5df64259b642ab2aa6cf2a9b63a7 Mon Sep 17 00:00:00 2001 From: Leander Date: Wed, 5 Apr 2017 16:34:24 +0200 Subject: [PATCH] T201704051634 --- answer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/answer.php b/answer.php index e134105..57bee66 100644 --- a/answer.php +++ b/answer.php @@ -60,7 +60,7 @@ if($uid == '') { $old_hi_questions = $old_hi_data['answered_questions']; $old_hi_score_total = $old_hi_score_pq * $old_hi_questions; $new_hi_score_total = $old_hi_score_total + $score; - $new_hi_questions = $old_hi_questions++; + $new_hi_questions = $old_hi_questions + 1; $new_hi_score_pq = intval($new_hi_score_total / $new_hi_questions); $db->query('UPDATE "Highscores" SET "score" = $1, "answered_questions" = $2', array($new_hi_score_pq, $new_hi_questions));