MDL-47793 assign: trivial fix for inconsistent use of get_instance()

This commit is contained in:
Damyon Wiese
2014-11-05 14:27:58 +08:00
parent 43db479d51
commit 225fa27fc2
+1 -2
View File
@@ -772,9 +772,8 @@ class assign {
assign_reset_gradebook($data->courseid);
// Reset revealidentities if both submissions and grades have been reset.
$instance = $this->get_instance();
if ($this->get_instance()->blindmarking && $this->get_instance()->revealidentities) {
$DB->set_field('assign', 'revealidentities', 0, array('id' => $instance->id));
$DB->set_field('assign', 'revealidentities', 0, array('id' => $this->get_instance()->id));
}
}
}