Skip to content
Browse files

MDL-42635 lesson: Fixed error message

  • Loading branch information...
1 parent f500ff4 commit c6ac68eeada38f0f3d05b6640de80ea214ab773f @KristerV KristerV committed with marinaglancy Nov 22, 2013
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]);

0 comments on commit c6ac68e

Please sign in to comment.
Something went wrong with that request. Please try again.