Skip to content

Commit

Permalink
MDL-42635 lesson: change from error to user friendly message
Browse files Browse the repository at this point in the history
  • Loading branch information
KristerV authored and marinaglancy committed Apr 30, 2014
1 parent a76fb41 commit 5e3da2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lesson/locallib.php
Expand Up @@ -2742,7 +2742,7 @@ protected function check_page_order($page1, $page2) {
public function load_all_pages(lesson $lesson) {
global $DB;
if (!($pages =$DB->get_records('lesson_pages', array('lessonid'=>$lesson->id)))) {
print_error('cannotfindpages', 'lesson');
return array(); // Records returned empty.
}
foreach ($pages as $key=>$page) {
$pagetype = get_class($this->types[$page->qtype]);
Expand Down

0 comments on commit 5e3da2f

Please sign in to comment.