diff options
Diffstat (limited to 'mod/groups/actions')
-rw-r--r-- | mod/groups/actions/edit.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php index bc2530111..56ab914a7 100644 --- a/mod/groups/actions/edit.php +++ b/mod/groups/actions/edit.php @@ -90,13 +90,12 @@ if (isset($CONFIG->group_tool_options)) { } } -if($group->save()){ - add_to_river('river/group/create','create',$user->guid,$group->guid); -} +$group->save(); -// group creator needs to be member of new group +// group creator needs to be member of new group and river entry created if ($new_group_flag) { $group->join($user); + add_to_river('river/group/create','create',$user->guid,$group->guid); } |