mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'wip-MDL-51735-master' of git://github.com/abgreeve/moodle
This commit is contained in:
commit
e90c60696a
@ -286,7 +286,11 @@ if (empty($pageid)) {
|
||||
}
|
||||
// start at the first page
|
||||
if (!$pageid = $DB->get_field('lesson_pages', 'id', array('lessonid' => $lesson->id, 'prevpageid' => 0))) {
|
||||
print_error('cannotfindfirstpage', 'lesson');
|
||||
echo $lessonoutput->header($lesson, $cm, 'view', '', null);
|
||||
// Lesson currently has no content. A message for display has been prepared and will be displayed by the header method
|
||||
// of the lesson renderer.
|
||||
echo $lessonoutput->footer();
|
||||
exit();
|
||||
}
|
||||
/// This is the code for starting a timed test
|
||||
if(!isset($USER->startlesson[$lesson->id]) && !$canmanage) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user