]> git.mjollnir.org Git - moodle.git/commitdiff
using new DB syntax
authorstronk7 <stronk7>
Sat, 2 May 2009 00:17:31 +0000 (00:17 +0000)
committerstronk7 <stronk7>
Sat, 2 May 2009 00:17:31 +0000 (00:17 +0000)
lib/gradelib.php

index 32388279d9c2f84760f5d915cf170b941b9700b0..3dea2ee88959fff1ed0b2372db0530826c653ac5 100644 (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);
 }
 
 /**