Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/31/2010 09:45:19 AM (14 years ago)
Author:
apeatling
Message:

Improved noscript support.

File:
1 edited

Legend:

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

    r2471 r2485  
    145145
    146146        /* If $max is set, only return up to the max results */
    147         if ( (int)$total_activities > (int)$max )
    148             $total_activities = $max;
     147        if ( !empty( $max ) ) {
     148            if ( (int)$total_activities > (int)$max )
     149                $total_activities = $max;
     150        }
    149151
    150152        return array( 'activities' => $activities, 'total' => (int)$total_activities );
Note: See TracChangeset for help on using the changeset viewer.