mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-32437 fix invalid gradebook query sql
This commit is contained in:
parent
6b04fdc0b6
commit
f41741e7ba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user