another missing global
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 13:06:03 +0000 (13:06 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 13:06:03 +0000 (13:06 +0000)
mod/lesson/pagetypes/essay.php

index c653fe5..f9113ff 100644 (file)
@@ -49,7 +49,7 @@ class lesson_page_type_essay extends lesson_page {
         return $this->typeidstring;
     }
     public function display($renderer, $attempt) {
-        global $PAGE, $CFG;
+        global $PAGE, $CFG, $USER;
 
         $mform = new lesson_display_answer_form_essay($CFG->wwwroot.'/mod/lesson/continue.php', array('contents'=>$this->get_contents()));