Skip to content

Commit e8b9d0a

Browse files
committed
Deprecated print_error
1 parent a425342 commit e8b9d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search_books.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function book_search_get_readble_books( $course ) {
115115
$PAGE->set_url($FULLME);
116116

117117
if (!$course = $DB->get_record('course', array('id' => $courseid))) {
118-
print_error('invalidcourseid');
118+
throw new moodle_exception('invalidcourseid');
119119
}
120120

121121
require_course_login($course);

0 commit comments

Comments
 (0)