From ad56160f6c422848a5320ee646e9f27d0d5a53bf Mon Sep 17 00:00:00 2001 From: Alex Killing Date: Fri, 9 Aug 2024 11:47:19 +0200 Subject: [PATCH] fixed 41886: Fehler in Matrixfrage neutrale Antwort --- .../Categories/class.ilCategoryWizardInputGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ILIAS/SurveyQuestionPool/Categories/class.ilCategoryWizardInputGUI.php b/components/ILIAS/SurveyQuestionPool/Categories/class.ilCategoryWizardInputGUI.php index c55a835adc2c..45ed065b98e7 100755 --- a/components/ILIAS/SurveyQuestionPool/Categories/class.ilCategoryWizardInputGUI.php +++ b/components/ILIAS/SurveyQuestionPool/Categories/class.ilCategoryWizardInputGUI.php @@ -195,7 +195,7 @@ public function checkInput(): bool if (count($foundvalues) > 0) { // check answers - if (is_array($foundvalues['answer'])) { + if (is_array($foundvalues['answer'] ?? false)) { foreach ($foundvalues['answer'] as $idx => $answervalue) { if (((strlen($answervalue ?? "")) == 0) && ($this->getRequired() && (!isset($foundvalues['other'][$idx])))) { $this->setAlert($lng->txt("msg_input_is_required"));