Skip to content
Browse files

MDL-26492 Lesson: lesson_get_user_grades will return grade of all use…

…rs if userid=0
  • Loading branch information...
1 parent 7033316 commit bf821575ece5ce063e2229f3f2ba75b6e78bb4eb @rajeshtaneja rajeshtaneja committed Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/lib.php
View
2 mod/lesson/lib.php
@@ -345,7 +345,7 @@ function lesson_get_user_grades($lesson, $userid=0) {
$params = array("lessonid" => $lesson->id,"lessonid2" => $lesson->id);
- if (isset($userid)) {
+ if (!empty($userid)) {
$params["userid"] = $userid;
$params["userid2"] = $userid;
$user = "AND u.id = :userid";

0 comments on commit bf82157

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