Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/24/2009 10:05:01 PM (17 years ago)
Author:
apeatling
Message:

Merging 1.1 branch fixes into trunk.

File:
1 edited

Legend:

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

    r2077 r2114  
    105105
    106106                $wire_posts = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE item_id = %d ORDER BY date_posted DESC $pag_sql", $item_id ) );
    107                 $count = $wpdb->get_var( $wpdb->prepare( "SELECT count(id) FROM {$table_name} WHERE item_id = %d", $item_id ) );
     107                $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(id) FROM {$table_name} WHERE item_id = %d", $item_id ) );
    108108
    109109                return array( 'wire_posts' => $wire_posts, 'count' => $count );
Note: See TracChangeset for help on using the changeset viewer.