Changeset 5619
- Timestamp:
- 01/03/2012 10:06:17 PM (13 years ago)
- Location:
- branches/1.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-groups/bp-groups-actions.php
r5203 r5619 104 104 } 105 105 106 // Set the invite status 106 // Set the invite status 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 ); -
branches/1.5/bp-xprofile/bp-xprofile-classes.php
r5208 r5619 749 749 </div> 750 750 751 <?php do_action( 'xprofile_field_additional_options', &$this ) ?>751 <?php do_action( 'xprofile_field_additional_options', $this ) ?> 752 752 753 753 <?php $this->render_admin_form_children(); ?>
Note: See TracChangeset
for help on using the changeset viewer.