mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixed small bug resulting in a warning message when creating new rubric
This commit is contained in:
parent
fa4cbd214b
commit
2d41a9115b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user