Skip to content

Commit

Permalink
MDL-14988 "tables have been hardcoded with a prefix of "mdl" - causin…
Browse files Browse the repository at this point in the history
…g an error." Ooops!
  • Loading branch information
jamiesensei committed May 26, 2008
1 parent 5265400 commit 89bc941
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/quiz/report/reportlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 89bc941

Please sign in to comment.