]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10383 - some more disabling of groupingid's when $CFG->enablegroupings empty...
authorskodak <skodak>
Mon, 20 Aug 2007 14:20:36 +0000 (14:20 +0000)
committerskodak <skodak>
Mon, 20 Aug 2007 14:20:36 +0000 (14:20 +0000)
lib/grouplib.php

index 34c50f90e52a55eb06785d772c18df334d388ec9..4f3cae8eb5a298df28ed81749e86eddab3ab6968 100644 (file)
@@ -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;
     }
@@ -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;
     }
@@ -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;
     }
@@ -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;
     }