Browse files

Fixing a harmless warning in debug mode.

  • Loading branch information...
1 parent d50e5ed commit 8147ca063880d43f3cad93bd3104cd570b83a56d defacer committed May 25, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/lib.php
View
2 mod/lesson/lib.php
@@ -321,7 +321,7 @@ function lesson_grades($lessonid) {
if (!$lesson = get_record("lesson", "id", $lessonid)) {
error("Lesson record not found");
}
- if ($lesson->usemaxgrade) {
+ if (!empty($lesson->usemaxgrade)) {
$grades = get_records_sql_menu("SELECT userid,MAX(grade) FROM {$CFG->prefix}lesson_grades WHERE
lessonid = $lessonid GROUP BY userid");
} else {

0 comments on commit 8147ca0

Please sign in to comment.