Changeset 5620
- Timestamp:
- 01/03/2012 10:11:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-actions.php
r5431 r5620 107 107 // Checked against a whitelist for security 108 108 $allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) ); 109 $invite_status = in_array( $_POST['group-invite-status'], (array)$allowed_invite_status ) ? $_POST['group-invite-status'] : 'members';109 $invite_status = !empty( $_POST['group-invite-status'] ) && in_array( $_POST['group-invite-status'], (array)$allowed_invite_status ) ? $_POST['group-invite-status'] : 'members'; 110 110 111 111 groups_update_groupmeta( $bp->groups->new_group_id, 'invite_status', $invite_status );
Note: See TracChangeset
for help on using the changeset viewer.