Permalink
Browse files

on line #277, return null instead of throwing an error

  • Loading branch information...
1 parent ecb00e0 commit 9959aab2384753119b845a39a797282f66db0f27 michaelpenne committed Nov 1, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/lib.php
View
@@ -274,7 +274,7 @@ function lesson_grades($lessonid) {
global $CFG;
if (!$lesson = get_record("lesson", "id", $lessonid)) {
- error("Lesson record not found");
+ return NULL;
}
if ($lesson->usemaxgrade) {
$grades = get_records_sql_menu("SELECT userid,MAX(grade) FROM {$CFG->prefix}lesson_grades WHERE

0 comments on commit 9959aab

Please sign in to comment.