MDL-32437 fix invalid gradebook query sql

This commit is contained in:
Petr Skoda 2012-04-15 14:19:41 +02:00
parent 6b04fdc0b6
commit f41741e7ba

View File

@ -335,7 +335,7 @@ function grade_get_gradable_activities($courseid, $modulename='') {
$params = array($courseid, $modulename, GRADE_TYPE_NONE, $modulename);
$sql = "SELECT cm.*, m.name, md.name as modname
FROM {grade_items} gi, {course_modules} cm, {modules} md, {$modulename} m
FROM {grade_items} gi, {course_modules} cm, {modules} md, {{$modulename}} m
WHERE gi.courseid = ? AND
gi.itemtype = 'mod' AND
gi.itemmodule = ? AND