From: stronk7 Date: Sat, 2 May 2009 00:17:31 +0000 (+0000) Subject: using new DB syntax X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ae5a39398b648c776aebb95a53786b4037f512b4;p=moodle.git using new DB syntax --- diff --git a/lib/gradelib.php b/lib/gradelib.php index 32388279d9..3dea2ee889 100644 --- a/lib/gradelib.php +++ b/lib/gradelib.php @@ -876,8 +876,7 @@ function grade_force_full_regrading($courseid) { */ function grade_force_site_regrading() { global $CFG, $DB; - $sql = "UPDATE {$CFG->prefix}grade_items SET needsupdate=1"; - $DB->execute($sql); + $DB->set_field('grade_items', 'needsupdate', 1); } /**