Skip to content

Commit

Permalink
MDL-32437 fix invalid gradebook query sql
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 15, 2012
1 parent 6b04fdc commit f41741e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/querylib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f41741e

Please sign in to comment.