Fixed small bug resulting in a warning message when creating new rubric

This commit is contained in:
Marina Glancy 2011-11-07 13:07:30 +08:00
parent fa4cbd214b
commit 2d41a9115b

View File

@ -397,6 +397,9 @@ abstract class gradingform_controller {
*/
public function has_active_instances() {
global $DB;
if (empty($this->definition->id)) {
return false;
}
if ($this->hasactiveinstances === null) {
$conditions = array('formid' => $this->definition->id,
'status' => gradingform_instance::INSTANCE_STATUS_ACTIVE);