Comments number bug.

git-svn-id: https://develop.svn.wordpress.org/trunk@701 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-01-03 05:03:28 +00:00
parent bd7c0ac69b
commit 13519fd241
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1558,7 +1558,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
// generic comments/trackbacks/pingbacks numbering
function comments_number($zero='No Comments', $one='1 Comment', $more='% Comments', $number) {
function comments_number($zero='No Comments', $one='1 Comment', $more='% Comments', $number='') {
global $id, $comment, $tablecomments, $wpdb;
if ('' == $number) $number = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'");
if ($number == 0) {