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-xprofile/bp-xprofile-screens.php

    r5704 r5729  
    7272        // Loop through the posted fields formatting any datebox values
    7373        // then validate the field
    74         foreach ( (array)$posted_field_ids as $field_id ) {
     74        foreach ( (array) $posted_field_ids as $field_id ) {
    7575            if ( !isset( $_POST['field_' . $field_id] ) ) {
    7676
     
    102102
    103103            // Now we've checked for required fields, lets save the values.
    104             foreach ( (array)$posted_field_ids as $field_id ) {
     104            foreach ( (array) $posted_field_ids as $field_id ) {
    105105
    106106                // Certain types of fields (checkboxes, multiselects) may come through empty. Save them as an empty array so that they don't get overwritten by the default on the next edit.
Note: See TracChangeset for help on using the changeset viewer.