T201704041153

This commit is contained in:
Leander
2017-04-04 11:54:05 +02:00
parent a5b97607e3
commit 616d50afac

View File

@@ -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 {