Permalink
Browse files

course MDL-25529 $introeditor not declared in some cases (=> it was d…

…isplaying php notice when adding the official newmodule template)
  • Loading branch information...
1 parent 70913ab commit 4a67d7c84d0ab2509f47c03b26e486816ca8e605 @mouneyrac mouneyrac committed Dec 5, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 course/modedit.php
View
@@ -427,6 +427,7 @@
// update embedded links and save files
$modcontext = get_context_instance(CONTEXT_MODULE, $fromform->coursemodule);
if (plugin_supports('mod', $fromform->modulename, FEATURE_MOD_INTRO, true)) {
+ $introeditor = $fromform->introeditor;
$fromform->intro = file_save_draft_area_files($introeditor['itemid'], $modcontext->id,
'mod_'.$fromform->modulename, 'intro', 0,
array('subdirs'=>true), $introeditor['text']);

0 comments on commit 4a67d7c

Please sign in to comment.