From d3f03cfcf886086a9f93df4243485266d50ddb7e Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Fri, 12 Jul 2024 16:55:46 +0100 Subject: [PATCH] CONTRIB-9624 Fix Undefined array key "text" --- mod_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_form.php b/mod_form.php index 90dcfbf3..4dccef8c 100644 --- a/mod_form.php +++ b/mod_form.php @@ -230,7 +230,7 @@ public function save_mod_data(stdClass $data, context_module $context) { global $DB; $editor = $data->bookinginstructions_editor; - if ($editor) { + if ($editor && array_key_exists('text', $editor)) { $data->bookinginstructions = file_save_draft_area_files($editor['itemid'], $context->id, 'mod_scheduler', 'bookinginstructions', 0, $this->editoroptions, $editor['text']);