Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2010 05:59:55 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1768 props MrMaz

File:
1 edited

Legend:

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

    r2526 r2541  
    114114            $activities = $wpdb->get_results( $wpdb->prepare( "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}" ) );
    115115
    116         $total_activities = $wpdb->get_var( $wpdb->prepare( "SELECT count(a.id) {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort}" ) );
     116        $total_activities = $wpdb->get_var( $wpdb->prepare( "SELECT count(a.id) FROM {$bp->activity->table_name} a {$where_sql} ORDER BY a.date_recorded {$sort}" ) );
    117117
    118118        /* Get the fullnames of users so we don't have to query in the loop */
Note: See TracChangeset for help on using the changeset viewer.