Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 09:32:04 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for cast variables.

File:
1 edited

Legend:

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

    r5714 r5729  
    111111            // Checked against a whitelist for security
    112112            $allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) );
    113             $invite_status         = !empty( $_POST['group-invite-status'] ) && in_array( $_POST['group-invite-status'], (array)$allowed_invite_status ) ? $_POST['group-invite-status'] : 'members';
     113            $invite_status         = !empty( $_POST['group-invite-status'] ) && in_array( $_POST['group-invite-status'], (array) $allowed_invite_status ) ? $_POST['group-invite-status'] : 'members';
    114114
    115115            groups_update_groupmeta( $bp->groups->new_group_id, 'invite_status', $invite_status );
     
    156156             * we need to loop the step array and fetch the next step that way.
    157157             */
    158             foreach ( (array)$bp->groups->group_creation_steps as $key => $value ) {
     158            foreach ( (array) $bp->groups->group_creation_steps as $key => $value ) {
    159159                if ( $key == $bp->groups->current_create_step ) {
    160160                    $next = 1;
     
    276276        return false;
    277277
    278     foreach ( (array)$bp->groups->group_creation_steps as $slug => $step ) {
     278    foreach ( (array) $bp->groups->group_creation_steps as $slug => $step ) {
    279279        while ( !empty( $temp[$step['position']] ) )
    280280            $step['position']++;
     
    287287    unset($bp->groups->group_creation_steps);
    288288
    289     foreach( (array)$temp as $position => $step )
     289    foreach( (array) $temp as $position => $step )
    290290        $bp->groups->group_creation_steps[$step['slug']] = array( 'name' => $step['name'], 'position' => $position );
    291291}
Note: See TracChangeset for help on using the changeset viewer.