diff --git a/webseite/topicEditor.php b/webseite/topicEditor.php index 51a69ac..e322136 100644 --- a/webseite/topicEditor.php +++ b/webseite/topicEditor.php @@ -52,8 +52,8 @@ if (isset($_GET['subject']) && isset($_GET['topic'])) { $defaultValues['formulas'] = implode(";;;;", $tasks); $defaultValues['article'] = $editingTopic->getFinishedArticle(); } -} else if (isset($_GET['subjectId'])) { - $defaultValues['subjectId'] = $_GET['subjectId']; +} else if (isset($_GET['subject'])) { + $defaultValues['subjectId'] = $_GET['subject']; } if ($_SERVER['REQUEST_METHOD'] == 'POST') {