From 616d50afac98a4b00f85615d0d7d21cf26ccb750 Mon Sep 17 00:00:00 2001 From: Leander Date: Tue, 4 Apr 2017 11:54:05 +0200 Subject: [PATCH] T201704041153 --- answer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {