diff --git a/answer.php b/answer.php index 236afd5..b114300 100644 --- a/answer.php +++ b/answer.php @@ -47,7 +47,7 @@ $new_time = $old_time + $time; $db->query('UPDATE "Games" SET "total_time" = $1 WHERE "ID" = $2', array($new_time, $uid)); if($db->query('SELECT EXISTS (SELECT 1 FROM "GamesQuestions" WHERE "Games_ID" = $1)',array($uid)) - ['data'][0]['exist'] == 't') { + ['data'][0]['exists'] == 't') { $next_question = Question::get_next_question($db, $uid); $data = array('results' => $results, 'next' => $next_question); } else {