Skip to content

Commit

Permalink
removed moodle_exception when $db_groups < 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Opitz committed Dec 5, 2023
1 parent cc71083 commit 449277e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function definition()
$a->linkcourse = $CFG->wwwroot . '//course/view.php?id=' . $COURSE->id;
$message = get_string('pleasesetonegroupor', 'choicegroup', $a);
\core\notification::add($message, \core\notification::WARNING);
throw new moodle_exception('nogroupincourse', 'choicegroup', new moodle_url('/course/view.php?id=' . $COURSE->id), $a);
}

$db_groupings = $DB->get_records('groupings', array('courseid' => $COURSE->id));
Expand Down

0 comments on commit 449277e

Please sign in to comment.