Commit ae5a3939 authored by stronk7's avatar stronk7
Browse files

using new DB syntax

parent e849e868
......@@ -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);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment