Skip to:
Content

BuddyPress.org

Changeset 5619


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

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

Location:
branches/1.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-groups/bp-groups-actions.php

    r5203 r5619  
    104104            }
    105105
    106             // Set the invite status
     106            // Set the invite status           
    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 );
  • branches/1.5/bp-xprofile/bp-xprofile-classes.php

    r5208 r5619  
    749749                </div>
    750750
    751                 <?php do_action( 'xprofile_field_additional_options', &$this ) ?>
     751                <?php do_action( 'xprofile_field_additional_options', $this ) ?>
    752752
    753753                <?php $this->render_admin_form_children(); ?>
Note: See TracChangeset for help on using the changeset viewer.