Ticket #2637: patch-2637.patch
File patch-2637.patch, 787 bytes (added by , 14 years ago) |
---|
-
bp-groups.php
1548 1548 return false; 1549 1549 1550 1550 if ( !$group_id ) { 1551 / * If this is a new group, set up the creator as the first member and admin */1551 // If this is a new group, set up the creator as the first member and admin 1552 1552 $member = new BP_Groups_Member; 1553 1553 $member->group_id = $group->id; 1554 1554 $member->user_id = $group->creator_id; … … 1558 1558 $member->date_modified = gmdate( "Y-m-d H:i:s" ); 1559 1559 1560 1560 $member->save(); 1561 do_action( 'groups_create_group', $group->id, $member, $group ); 1562 1563 } else { 1564 do_action( 'groups_update_group', $group->id, $group ); 1561 1565 } 1562 1566 1563 1567 do_action( 'groups_created_group', $group->id );