statistics MDL-25822 Fix get_records_sql returning non-unique first column
[moodle.git] / course / report / stats / report.php
index 65962dd..e13f064 100644 (file)
@@ -98,7 +98,7 @@
                 .' ORDER BY timeend DESC';
         }
 
-        $stats = $DB->get_records_sql($sql, $params);
+        $stats = $DB->get_records_sql($sql);
 
         if (empty($stats)) {
             echo $OUTPUT->notification(get_string('statsnodata'));