Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…rs if userid=0
  • Loading branch information...
commit 617144c9ffe81ff60f29965a3ca80270ced216ac 1 parent 76c9fcc
Rajesh Taneja rajeshtaneja authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/lesson/lib.php
2  mod/lesson/lib.php
@@ -345,7 +345,7 @@ function lesson_get_user_grades($lesson, $userid=0) {
345 345
346 346 $params = array("lessonid" => $lesson->id,"lessonid2" => $lesson->id);
347 347
348   - if (isset($userid)) {
  348 + if (!empty($userid)) {
349 349 $params["userid"] = $userid;
350 350 $params["userid2"] = $userid;
351 351 $user = "AND u.id = :userid";

0 comments on commit 617144c

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