Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/10/2012 08:30:59 PM (14 years ago)
Author:
djpaul
Message:

Fix PHP warnings caused by recent changes to the Sites Directory get_blog_extras() function.

File:
1 edited

Legend:

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

    r6372 r6398  
    266266
    267267                        // Add URLs to any Featured Image this post might have
    268                         if ( has_post_thumbnail( $paged_blogs[$i]->latest_post->ID ) ) {
     268                        if ( ! empty( $paged_blogs[$i]->latest_post ) && has_post_thumbnail( $paged_blogs[$i]->latest_post->ID ) ) {
    269269
    270270                                // Grab 4 sizes of the image. Thumbnail.
     
    287287                                if ( ! empty( $image ) )
    288288                                        $images['post-thumbnail'] = $image[0];
     289
     290                                // Add the images to the latest_post object
     291                                $paged_blogs[$i]->latest_post->images = $images;
    289292                        }
    290 
    291                         // Add the images to the latest_post object
    292                         $paged_blogs[$i]->latest_post->images = $images;
    293293                }
    294294
Note: See TracChangeset for help on using the changeset viewer.