Skip to content

Commit

Permalink
MDL-32904: Fix incorrect call to update_record (not causing an error)
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed May 14, 2012
1 parent 71d7bc3 commit 1294580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/assignmentplugin.php
Expand Up @@ -289,7 +289,7 @@ public final function set_config($name, $value) {

if ($current) {
$current->value = $value;
return $DB->update_record('assign_plugin_config', $current, array('id'=>$current->id));
return $DB->update_record('assign_plugin_config', $current);
} else {
$setting = new stdClass();
$setting->assignment = $this->assignment->get_instance()->id;
Expand Down

0 comments on commit 1294580

Please sign in to comment.