diff --git a/blog/edit_form.php b/blog/edit_form.php index dac9d311fad..a6fa4a1ed2b 100644 --- a/blog/edit_form.php +++ b/blog/edit_form.php @@ -101,6 +101,7 @@ class blog_edit_form extends moodleform { $a = new stdClass(); $a->modtype = $DB->get_field('modules', 'name', array('id' => $cm->module)); $a->modname = $DB->get_field($a->modtype, 'name', array('id' => $cm->instance)); + $modid = $context->instanceid; } $mform->addElement('header', 'assochdr', get_string('associations', 'blog'));