From d37f35b747153542cb7dd9fa21bb99125291bcc8 Mon Sep 17 00:00:00 2001 From: Lewin Probst Date: Fri, 27 Mar 2020 21:21:52 +0100 Subject: [PATCH] Bugfix, if the content is NULL, insert an empty string when creating the element. --- module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.php b/module.php index c9d067e..ff13234 100644 --- a/module.php +++ b/module.php @@ -107,7 +107,7 @@ return new class extends Module $content_element = $element[self::OPTIONS_CONTENT]; $content = $this->createAndSetupElement( $content_element[self::OPTIONS_ELEMENT], - $content_element[self::OPTIONS_CONTENT], + $content_element[self::OPTIONS_CONTENT] ?? '', array_diff_key($content_element, $this->non_attribute_options) ); $form_element = $this->createAndSetupElement(