From 8172ede660f77d298b0ca5ce04fbc62abbbe54fe Mon Sep 17 00:00:00 2001 From: structix Date: Thu, 11 Jul 2019 13:56:46 +0200 Subject: [PATCH] Fix --- uebung10/api.php | 1 - 1 file changed, 1 deletion(-) diff --git a/uebung10/api.php b/uebung10/api.php index 3b2167d..f9e2618 100644 --- a/uebung10/api.php +++ b/uebung10/api.php @@ -12,7 +12,6 @@ if (isset($_GET['n'])) { } $questions = $db->getQuestions($n); -$fullarray[] = []; foreach($questions as $q) { $answers = array($q['answer0'], $q['answer1'], $q['answer2']); $jsonarray = array("id" => $q['id'], "answers" => $answers, "solution" => $q['solution']);