Skip to:
Content

BuddyPress.org

Ticket #872: activity_max_items.diff

File activity_max_items.diff, 490 bytes (added by petronic, 15 years ago)
  • bp-activity/bp-activity-classes.php

     
    156156                if ( $limit && $page )
    157157                        $pag_sql = $wpdb->prepare( "LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) );
    158158
    159                 if ( $max )
     159                if ( $max_items )
    160160                        $max_sql = $wpdb->prepare( "LIMIT %d", $max_items );
    161161               
    162162                if ( $filter )