From: jamiesensei Date: Wed, 14 May 2008 11:18:04 +0000 (+0000) Subject: MDL-14201 "Summary graph" - small improvement to robustness for sql. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c187720b742a5abba012806a9ac9b2c64be0cc40;p=moodle.git MDL-14201 "Summary graph" - small improvement to robustness for sql. Merged from 1.9 branch. --- diff --git a/mod/quiz/report/reportlib.php b/mod/quiz/report/reportlib.php index 2324ea444b..f6dd869932 100644 --- a/mod/quiz/report/reportlib.php +++ b/mod/quiz/report/reportlib.php @@ -115,7 +115,7 @@ function quiz_report_grade_bands($bands, $quizid, $useridlist){ FROM mdl_quiz_grades qg, mdl_quiz q - WHERE qg.quiz = q.id AND quiz = $quizid AND qg.userid IN ($useridlist) + WHERE qg.quiz = q.id AND qg.quiz = $quizid AND qg.userid IN ($useridlist) GROUP BY band ORDER BY band"; $data = get_records_sql_menu($sql);