From 9301ddd378502520bdecf615ef29d6545422b657 Mon Sep 17 00:00:00 2001 From: Alexander Killing Date: Sun, 16 Oct 2022 17:22:07 +0200 Subject: [PATCH] possible fix for #34586: LegacyForm/ilAlphabetInputGUI: TypeError thrown with message ilAlphabetInputGUI::fixDBUmlauts(): Argument #1 () must be of --- Services/Form/classes/class.ilAlphabetInputGUI.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Services/Form/classes/class.ilAlphabetInputGUI.php b/Services/Form/classes/class.ilAlphabetInputGUI.php index 45730037a6f7..7c9c3ce9d787 100644 --- a/Services/Form/classes/class.ilAlphabetInputGUI.php +++ b/Services/Form/classes/class.ilAlphabetInputGUI.php @@ -154,6 +154,9 @@ public function getToolbarHTML(): string $tpl = new ilTemplate("tpl.prop_alphabet.html", true, true, "Services/Form"); foreach ($this->getLetters() as $l) { + if (is_null($l)) { + continue; + } $l = $this->fixDBUmlauts($l); $tpl->setCurrentBlock("letter"); $tpl->setVariable("TXT_LET", $l);