Skip to content

Commit

Permalink
Groups - check if group is in a category.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Nov 4, 2020
1 parent df41111 commit 4e17dfb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main/inc/lib/groupmanager.lib.php
Expand Up @@ -2986,13 +2986,16 @@ public static function getOverview($courseId, $keyword = '')
}
}

// No category
// Check groups with no categories.
$groups = self::get_group_list();
if (!empty($groups)) {
$content .= '<h2>'.get_lang('NoCategorySelected').'</h2>';
$content .= '<ul>';
foreach ($groups as $group) {
$content = self::groupOverview($group, $url);
if (!empty($group['category'])) {
continue;
}
$content .= self::groupOverview($group, $url);
}
$content .= '</ul>';
}
Expand Down

0 comments on commit 4e17dfb

Please sign in to comment.