Skip to content

Commit

Permalink
MDL-58123 mod_lesson: Fix lesson table name in refresh_events DB query
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Mar 2, 2017
1 parent ac4c762 commit c8e6ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lesson/lib.php
Expand Up @@ -241,7 +241,7 @@ function lesson_refresh_events($courseid = 0) {
global $DB;

if ($courseid == 0) {
if (!$lessons = $DB->get_records('lessons')) {
if (!$lessons = $DB->get_records('lesson')) {
return true;
}
} else {
Expand Down

0 comments on commit c8e6ceb

Please sign in to comment.