Skip to:
Content

BuddyPress.org


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

Breathing room for cast variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r5699 r5729  
    144144        // Get the group ids
    145145        $group_ids = array();
    146         foreach( (array)$groups as $group ) {
     146        foreach( (array) $groups as $group ) {
    147147            $group_ids[] = $group->id;
    148148        }
     
    179179
    180180                // Loop through the results and find the fields that have data.
    181                 foreach( (array)$field_data as $data ) {
     181                foreach( (array) $field_data as $data ) {
    182182
    183183                    // Empty fields may contain a serialized empty array
     
    205205
    206206                // Loop through fields
    207                 foreach( (array)$fields as $field_key => $field ) {
     207                foreach( (array) $fields as $field_key => $field ) {
    208208
    209209                    // Loop throught the data in each field
    210                     foreach( (array)$field_data as $data ) {
     210                    foreach( (array) $field_data as $data ) {
    211211
    212212                        // Assign correct data value to the field
     
    490490                $counter = 1;
    491491                if ( !empty( $options ) ) {
    492                     foreach ( (array)$options as $option_key => $option_value ) {
     492                    foreach ( (array) $options as $option_key => $option_value ) {
    493493                        $is_default = 0;
    494494
Note: See TracChangeset for help on using the changeset viewer.