Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Oct 30, 2024
1 parent 043957d commit 7ee4ad3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
$id = required_param('id', PARAM_INT);
$boardid = optional_param('boardid', 0, PARAM_INT);
$userid = optional_param('user', 0, PARAM_INT);
$group = optional_param('group', -1, PARAM_INT);

[$course, $cm] = get_course_and_cm_from_cmid($id, 'kanban');
[$course, $cm] = get_course_and_cm_from_cmid($id, 'kanban');

require_course_login($course, true, $cm);
$context = context_module::instance($cm->id);
Expand All @@ -57,7 +56,7 @@

$groupmode = groups_get_activity_groupmode($cm, $course);

if (!empty($groupmode) && $group != 0) {
if (!empty($groupmode)) {
$groupid = groups_get_activity_group($cm, true);
}

Expand Down

0 comments on commit 7ee4ad3

Please sign in to comment.