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-blogs/bp-blogs-classes.php

    r5686 r5729  
    123123
    124124        $blog_ids = array();
    125         foreach ( (array)$paged_blogs as $blog ) {
     125        foreach ( (array) $paged_blogs as $blog ) {
    126126            $blog_ids[] = $blog->blog_id;
    127127        }
    128128
    129         $blog_ids = $wpdb->escape( join( ',', (array)$blog_ids ) );
     129        $blog_ids = $wpdb->escape( join( ',', (array) $blog_ids ) );
    130130        $paged_blogs = BP_Blogs_Blog::get_blog_extras( $paged_blogs, $blog_ids, $type );
    131131
     
    173173
    174174        $user_blogs = array();
    175         foreach ( (array)$blogs as $blog ) {
     175        foreach ( (array) $blogs as $blog ) {
    176176            $user_blogs[$blog->blog_id] = new stdClass;
    177177            $user_blogs[$blog->blog_id]->id = $blog->id;
     
    273273
    274274        for ( $i = 0, $count = count( $paged_blogs ); $i < $count; ++$i ) {
    275             foreach ( (array)$blog_descs as $desc ) {
     275            foreach ( (array) $blog_descs as $desc ) {
    276276                if ( $desc->blog_id == $paged_blogs[$i]->blog_id )
    277277                    $paged_blogs[$i]->description = $desc->description;
     
    285285        global $wpdb;
    286286
    287         if ( !(int)$wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT public FROM {$wpdb->base_prefix}blogs WHERE blog_id = %d", $blog_id ) ) )
     287        if ( !(int) $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT public FROM {$wpdb->base_prefix}blogs WHERE blog_id = %d", $blog_id ) ) )
    288288            return true;
    289289
Note: See TracChangeset for help on using the changeset viewer.