Skip to:
Content

BuddyPress.org

Changeset 909


Ignore:
Timestamp:
01/23/2009 07:42:52 PM (15 years ago)
Author:
apeatling
Message:

Fixes #386

File:
1 edited

Legend:

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

    r905 r909  
    179179            if ( count($activities_formatted) )
    180180                BP_Activity_Activity::cache_activities( $activities_formatted, $user_id );
    181                
    182             // Now honor the limit value, otherwise we may return 30 items on a profile page.
    183             $activities_formatted = array_slice($activities_formatted, 0, $limit);
     181           
     182            if ( is_array( $activities_formatted ) ) {
     183                // Now honor the limit value, otherwise we may return 30 items on a profile page.
     184                $activities_formatted = array_slice($activities_formatted, 0, $limit);             
     185            }
    184186        }
    185187       
Note: See TracChangeset for help on using the changeset viewer.