Skip to content

Commit

Permalink
MDL-10383 - some more disabling of groupingid's when $CFG->enablegrou…
Browse files Browse the repository at this point in the history
…pings empty - adding some explanation comments
  • Loading branch information
skodak committed Aug 20, 2007
1 parent c0d4238 commit 7e4fdf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/grouplib.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function groups_get_group($groupid) {
function groups_get_all_groups($courseid, $userid=0, $groupingid=0) {
global $CFG;

// groupings are ignored when not enabled
if (empty($CFG->enablegroupings)) {
$groupingid = 0;
}
Expand Down Expand Up @@ -136,6 +137,7 @@ function groups_is_member($groupid, $userid=null) {
function groups_has_membership($cm, $userid=null) {
global $CFG, $USER;

// groupings are ignored when not enabled
if (empty($CFG->enablegroupings)) {
$cm->groupingid = 0;
}
Expand Down Expand Up @@ -206,6 +208,7 @@ function groups_get_activity_groupmode($cm) {
function groups_print_activity_menu($cm, $urlroot, $return=false) {
global $CFG, $USER;

// groupings are ignored when not enabled
if (empty($CFG->enablegroupings)) {
$cm->groupingid = 0;
}
Expand Down Expand Up @@ -270,6 +273,7 @@ function groups_print_activity_menu($cm, $urlroot, $return=false) {
function groups_get_activity_group($cm, $update=false) {
global $CFG, $USER, $SESSION;

// groupings are ignored when not enabled
if (empty($CFG->enablegroupings)) {
$cm->groupingid = 0;
}
Expand Down

0 comments on commit 7e4fdf2

Please sign in to comment.