mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14988 "tables have been hardcoded with a prefix of "mdl" - causing an error." Ooops!
This commit is contained in:
parent
686e602047
commit
f522bf51be
1 changed files with 3 additions and 2 deletions
|
@ -163,12 +163,13 @@ function quiz_report_qm_filter_subselect($quiz, $useridsql = 'u.id'){
|
|||
}
|
||||
|
||||
function quiz_report_grade_bands($bandwidth, $bands, $quizid, $useridlist){
|
||||
global $CFG;
|
||||
$sql = "SELECT
|
||||
FLOOR(qg.grade/$bandwidth) AS band,
|
||||
COUNT(1) AS num
|
||||
FROM
|
||||
mdl_quiz_grades qg,
|
||||
mdl_quiz q
|
||||
{$CFG->prefix}quiz_grades qg,
|
||||
{$CFG->prefix}quiz q
|
||||
WHERE qg.quiz = q.id AND qg.quiz = $quizid AND qg.userid IN ($useridlist)
|
||||
GROUP BY band
|
||||
ORDER BY band";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue