Skip to content

Commit

Permalink
Merge pull request #61 from leonstr/CONTRIB-9624-undefinedkey
Browse files Browse the repository at this point in the history
CONTRIB-9624 Fix Undefined array key "text"
  • Loading branch information
bostelm authored Jul 25, 2024
2 parents 3b891cc + d3f03cf commit 81203fd
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 81203fd

Please sign in to comment.