using new DB syntax

This commit is contained in:
stronk7
2009-05-02 00:17:31 +00:00
parent e849e86891
commit ae5a39398b
+1 -2
View File
@@ -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);
}
/**