Skip to content
Permalink
Browse files

MDL-48750 Lesson: Fix attempt info displayed by course overview block

  • Loading branch information
sbourget authored and danpoltawski committed Jan 9, 2015
1 parent d3e6254 commit 8a15f3d25fec56b559c9f2bb095f653be0ee892c
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/lib.php
@@ -286,7 +286,7 @@ function lesson_print_overview($courses, &$htmlarray) {
// Attempt information
if (has_capability('mod/lesson:manage', context_module::instance($lesson->coursemodule))) {
// Number of user attempts
$attempts = $DB->count_records('lesson_attempts', array('lessonid'=>$lesson->id));
$attempts = $DB->count_records('lesson_grades', array('lessonid' => $lesson->id));
$str .= $OUTPUT->box(get_string('xattempts', 'lesson', $attempts), 'info');
} else {
// Determine if the user has attempted the lesson or not

0 comments on commit 8a15f3d

Please sign in to comment.
You can’t perform that action at this time.