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));