From 034fe6853e474b28fa2c805b2ae59ac1b01bffea Mon Sep 17 00:00:00 2001 From: structix Date: Thu, 11 Jul 2019 14:16:46 +0200 Subject: [PATCH] Update --- uebung10/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uebung10/api.php b/uebung10/api.php index f9e2618..fb4eb2e 100644 --- a/uebung10/api.php +++ b/uebung10/api.php @@ -14,7 +14,7 @@ $questions = $db->getQuestions($n); foreach($questions as $q) { $answers = array($q['answer0'], $q['answer1'], $q['answer2']); - $jsonarray = array("id" => $q['id'], "answers" => $answers, "solution" => $q['solution']); + $jsonarray = array("id" => $q['id'], "question" => $q['question'], "answers" => $answers, "solution" => $q['solution']); $fullarray[] = $jsonarray; }