Skip to content

Commit

Permalink
CONTRIB-9624 Fix Undefined array key "text"
Browse files Browse the repository at this point in the history
  • Loading branch information
leonstr committed Jul 12, 2024
1 parent 62dc7b2 commit d3f03cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit d3f03cf

Please sign in to comment.