From 23576a735f13eecfa04b13d8698af9afd8c25d6e Mon Sep 17 00:00:00 2001 From: Stephan Kergomard Date: Wed, 18 Dec 2024 08:41:24 +0100 Subject: [PATCH] Test: ImageMap-Map May Not Contain Answer-Text See: https://mantis.ilias.de/view.php?id=43263 --- .../classes/forms/class.ilHtmlImageMapFileInputGUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ILIAS/TestQuestionPool/classes/forms/class.ilHtmlImageMapFileInputGUI.php b/components/ILIAS/TestQuestionPool/classes/forms/class.ilHtmlImageMapFileInputGUI.php index 70fc7579b6c4..2a7b16a68ecf 100755 --- a/components/ILIAS/TestQuestionPool/classes/forms/class.ilHtmlImageMapFileInputGUI.php +++ b/components/ILIAS/TestQuestionPool/classes/forms/class.ilHtmlImageMapFileInputGUI.php @@ -73,7 +73,7 @@ public function checkInput(): bool return false; } - $this->shapes[] = new ASS_AnswerImagemap($alt[1], 0.0, $i, $coords[1], $shape[1]); + $this->shapes[] = new ASS_AnswerImagemap($alt[1] ?? '', 0.0, $i, $coords[1], $shape[1]); } return true;