MDL-14679 fixed remaining old style update_record()s

This commit is contained in:
Petr Skoda
2010-09-03 18:01:25 +00:00
parent a9637e7df4
commit dd88de0ebd
23 changed files with 110 additions and 157 deletions
+3 -4
View File
@@ -295,7 +295,7 @@
$PAGE->set_title($title);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
/// Check to see if groups are being used here
@@ -407,9 +407,8 @@ if ($showactivity) {
if ($approverecord->dataid == $data->id) { // Must be from this database
$newrecord->id = $approverecord->id;
$newrecord->approved = 1;
if ($DB->update_record('data_records', $newrecord)) {
echo $OUTPUT->notification(get_string('recordapproved','data'), 'notifysuccess');
}
$DB->update_record('data_records', $newrecord);
echo $OUTPUT->notification(get_string('recordapproved','data'), 'notifysuccess');
}
}
}