Merge branch 'MDL-29115' of git://github.com/rwijaya/moodle
authorSam Hemelryk <sam@moodle.com>
Thu, 24 Nov 2011 22:53:24 +0000 (11:53 +1300)
committerSam Hemelryk <sam@moodle.com>
Thu, 24 Nov 2011 22:53:24 +0000 (11:53 +1300)
mod/lesson/continue.php

index 384cb47..5765ffa 100644 (file)
@@ -197,7 +197,7 @@ if (isset($USER->modattempts[$lesson->id])) {
 }
 
 // Review button back
-if (!$result->correctanswer && !$result->noanswer && !$result->isessayquestion && !$reviewmode) {
+if (!$result->correctanswer && !$result->noanswer && !$result->isessayquestion && !$reviewmode && $lesson->review) {
     $url = $CFG->wwwroot.'/mod/lesson/view.php';
     $content = html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=>$cm->id));
     $content .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'pageid', 'value'=>$page->id));