MDL-40776 grade: fix query for report outcomes
authorSara Cenni <sara.cenni@unibo.it>
Wed, 11 Feb 2015 13:14:02 +0000 (14:14 +0100)
committerSara Cenni <sara.cenni@unibo.it>
Wed, 11 Feb 2015 13:14:02 +0000 (14:14 +0100)
Add a missing space to the query for report outcomes to avoid error with Oracle.

grade/report/outcomes/index.php

index 7ffc08e..cc809ab 100644 (file)
@@ -74,7 +74,7 @@ foreach ($outcomes as $outcomeid => $outcome) {
                       FROM {grade_grades}
                      WHERE itemid = ?".
                      $hidesuspendedsql.
-                  "GROUP BY itemid";
+                  " GROUP BY itemid";
             $info = $DB->get_records_sql($sql, $params);
 
             if (!$info) {