Skip to:
Content

BuddyPress.org

Changeset 5620


Ignore:
Timestamp:
01/03/2012 10:11:17 PM (13 years ago)
Author:
boonebgorges
Message:

Provide a fallback for group-invite-status during group creation. Fixes #3900

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-actions.php

    r5431 r5620  
    107107            // Checked against a whitelist for security
    108108            $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';
    110110
    111111            groups_update_groupmeta( $bp->groups->new_group_id, 'invite_status', $invite_status );
Note: See TracChangeset for help on using the changeset viewer.