Log in with username/password: lyceum/lyceum

Changeset 97

Show
Ignore:
Timestamp:
10/26/05 01:01:18 (3 years ago)
Author:
john
Message:

another count fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/0.6RC/src/lyceum/wp-includes/functions.php

    r69 r97  
    169169function get_usernumposts($userid) { 
    170170   global $wpdb, $blog; 
    171    return $wpdb->get_post_var("COUNT(*)", "post_author = '$userid' AND post_status = 'publish'"); 
     171   return $wpdb->get_post_var("COUNT(DISTINCT $wpdb->posts.ID)", "post_author = '$userid' AND post_status = 'publish'"); 
    172172} 
    173173 
Log in with username/password: lyceum/lyceum