mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-12829 Removed a hard-coded test integer
This commit is contained in:
parent
df270d4c74
commit
b35a5a701d
@ -270,7 +270,7 @@ function quiz_get_user_grades($quiz, $userid=0) {
|
|||||||
|
|
||||||
$sql = "SELECT u.id, u.id AS userid, g.grade AS rawgrade, g.timemodified AS dategraded, MAX(a.timefinish) AS datesubmitted
|
$sql = "SELECT u.id, u.id AS userid, g.grade AS rawgrade, g.timemodified AS dategraded, MAX(a.timefinish) AS datesubmitted
|
||||||
FROM {$CFG->prefix}user u, {$CFG->prefix}quiz_grades g, {$CFG->prefix}quiz_attempts a
|
FROM {$CFG->prefix}user u, {$CFG->prefix}quiz_grades g, {$CFG->prefix}quiz_attempts a
|
||||||
WHERE u.id = g.userid AND g.quiz = 8 AND u.id = a.userid AND a.quiz = {$quiz->id}
|
WHERE u.id = g.userid AND g.quiz = {$quiz->id} AND a.quiz = g.quiz AND u.id = a.userid
|
||||||
$user
|
$user
|
||||||
GROUP BY u.id, g.grade, g.timemodified";
|
GROUP BY u.id, g.grade, g.timemodified";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user