Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-42635 lesson: Fixed error message

  • Loading branch information...
commit c6ac68eeada38f0f3d05b6640de80ea214ab773f 1 parent f500ff4
@KristerV KristerV authored marinaglancy committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/lesson/locallib.php
View
2  mod/lesson/locallib.php
@@ -2765,7 +2765,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]);
Please sign in to comment.
Something went wrong with that request. Please try again.