From 449277eb4ccd9c820f3666a1e378f55b5eb036e0 Mon Sep 17 00:00:00 2001 From: Matthias Opitz Date: Tue, 5 Dec 2023 09:52:02 +0000 Subject: [PATCH] removed moodle_exception when $db_groups < 1 --- mod_form.php | 1 - 1 file changed, 1 deletion(-) diff --git a/mod_form.php b/mod_form.php index 1934712..26dfda6 100644 --- a/mod_form.php +++ b/mod_form.php @@ -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));