From e4ee371deaeef11834096a7e692cb27ace0b8230 Mon Sep 17 00:00:00 2001 From: Stephan Kergomard Date: Wed, 23 Oct 2024 11:01:19 +0200 Subject: [PATCH] Test: Fix Returning Reference in Question --- .../ILIAS/TestQuestionPool/classes/class.assTextSubsetGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ILIAS/TestQuestionPool/classes/class.assTextSubsetGUI.php b/components/ILIAS/TestQuestionPool/classes/class.assTextSubsetGUI.php index 0ea934cd0b58..bc4d182dc1d9 100755 --- a/components/ILIAS/TestQuestionPool/classes/class.assTextSubsetGUI.php +++ b/components/ILIAS/TestQuestionPool/classes/class.assTextSubsetGUI.php @@ -162,7 +162,7 @@ public function getSolutionOutput( $template = new ilTemplate("tpl.il_as_qpl_textsubset_output_solution.html", true, true, "components/ILIAS/TestQuestionPool"); $solutiontemplate = new ilTemplate("tpl.il_as_tst_solution_output.html", true, true, "components/ILIAS/TestQuestionPool"); - $available_answers = &$this->object->getAvailableAnswers(); + $available_answers = $this->object->getAvailableAnswers(); for ($i = 0; $i < $this->object->getCorrectAnswers(); $i++) { if (!array_key_exists($i, $solutions) || (strcmp($solutions[$i]["value1"], "") == 0)) { } else {