From 845fe812a8caf7ee45df6c59d93cf867d99437ac Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 17 Jun 2008 07:05:44 +0000 Subject: [PATCH] MDL-15100 fixed typo ('param' instead of 'array') --- lib/gradelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gradelib.php b/lib/gradelib.php index ec2a676197..4c56bc2f64 100644 --- a/lib/gradelib.php +++ b/lib/gradelib.php @@ -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; -- 2.39.5