Changeset 10160 for trunk/src/bp-groups/bp-groups-actions.php
- Timestamp:
- 09/30/2015 11:42:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-actions.php
r10148 r10160 429 429 $group_admins = groups_get_group_admins( bp_get_current_group_id() ); 430 430 431 431 if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == bp_loggedin_user_id() ) { 432 432 bp_core_add_message( __( 'This group must have at least one admin', 'buddypress' ), 'error' ); 433 433 } elseif ( ! groups_leave_group( $bp->groups->current_group->id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.