Changeset 2541
- Timestamp:
- 02/02/2010 05:59:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r2526 r2541 114 114 $activities = $wpdb->get_results( $wpdb->prepare( "{$select_sql} {$from_sql} {$where_sql} ORDER BY a.date_recorded {$sort} {$pag_sql}" ) ); 115 115 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}" ) ); 117 117 118 118 /* 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.