aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/edit.php')
-rw-r--r--mod/groups/actions/edit.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php
index b5502115b..7965625e8 100644
--- a/mod/groups/actions/edit.php
+++ b/mod/groups/actions/edit.php
@@ -54,6 +54,15 @@
exit;
}
+ // Group membership
+ switch (get_input('membership'))
+ {
+ case 0: $group->membership = 0;
+ case 1 :$group->membership = 1; break;
+ case 2:
+ default: $group->membership = 2;
+ }
+
// Get access
$group->access_id = get_input('access_id', 0);