Changeset 2485 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 01/31/2010 09:45:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r2471 r2485 145 145 146 146 /* 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 } 149 151 150 152 return array( 'activities' => $activities, 'total' => (int)$total_activities );
Note: See TracChangeset
for help on using the changeset viewer.