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-functions.php

    r5699 r5729  
    175175    if ( is_array( $values ) ) {
    176176        $data = array();
    177         foreach( (array)$values as $value ) {
     177        foreach( (array) $values as $value ) {
    178178            $data[] = apply_filters( 'xprofile_get_field_data', $value, $field_id, $user_id );
    179179        }
     
    391391    global $bp, $wpdb;
    392392
    393     if ( !empty( $bp->site_options['bp-disable-profile-sync'] ) && (int)$bp->site_options['bp-disable-profile-sync'] )
     393    if ( !empty( $bp->site_options['bp-disable-profile-sync'] ) && (int) $bp->site_options['bp-disable-profile-sync'] )
    394394        return true;
    395395
     
    430430    global $bp;
    431431
    432     if ( ( !empty( $bp->site_options['bp-disable-profile-sync'] ) && (int)$bp->site_options['bp-disable-profile-sync'] ) || !$update || $errors->get_error_codes() )
     432    if ( ( !empty( $bp->site_options['bp-disable-profile-sync'] ) && (int) $bp->site_options['bp-disable-profile-sync'] ) || !$update || $errors->get_error_codes() )
    433433        return;
    434434
     
    535535    }
    536536
    537     $metas = array_map( 'maybe_unserialize', (array)$metas );
     537    $metas = array_map( 'maybe_unserialize', (array) $metas );
    538538
    539539    if ( 1 == count( $metas ) )
Note: See TracChangeset for help on using the changeset viewer.