]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15100 fixed typo ('param' instead of 'array')
authornicolasconnault <nicolasconnault>
Tue, 17 Jun 2008 07:05:44 +0000 (07:05 +0000)
committernicolasconnault <nicolasconnault>
Tue, 17 Jun 2008 07:05:44 +0000 (07:05 +0000)
lib/gradelib.php

index ec2a676197e616cf9fb3df3e573c930f636dd9a1..4c56bc2f64b58b1848a3845c69b993c23737b523 100644 (file)
@@ -1282,7 +1282,7 @@ function grade_cron() {
                 SELECT 'x' FROM {grade_items} c WHERE c.itemtype='course' AND c.needsupdate=0 AND c.courseid=i.courseid)";
 
     // go through all courses that have proper final grades and lock them if needed
-    if ($rs = $DB->get_recordset_sql($sql, params($now))) {
+    if ($rs = $DB->get_recordset_sql($sql, array($now))) {
         foreach ($rs as $item) {
             $grade_item = new grade_item($item, false);
             $grade_item->locked = $now;