diff --git a/drupal/sites/default/boinc/modules/boincuser/boincuser.module b/drupal/sites/default/boinc/modules/boincuser/boincuser.module index e9430010fa..a918f46d02 100644 --- a/drupal/sites/default/boinc/modules/boincuser/boincuser.module +++ b/drupal/sites/default/boinc/modules/boincuser/boincuser.module @@ -220,9 +220,13 @@ function boincuser_user($op, &$edit, &$account, $category = NULL) { SELECT COUNT(*) FROM {node} WHERE uid = '%d' AND type IN('page','story','forum','news') + AND status = 1 ) AS total_posts FROM {comments} - WHERE uid = '%d'", $account->uid, $account->uid + INNER JOIN node ON comments.nid = node.nid + WHERE comments.uid = '%d' + AND node.status = 1", + $account->uid, $account->uid )); break;