Index: contributions/modules/blog_addons/blog_addons.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/blog_addons/blog_addons.module,v
retrieving revision 1.3.2.2
diff -u -p -r1.3.2.2 blog_addons.module
--- contributions/modules/blog_addons/blog_addons.module	30 May 2008 23:25:21 -0000	1.3.2.2
+++ contributions/modules/blog_addons/blog_addons.module	21 Jun 2008 16:43:02 -0000
@@ -317,8 +317,8 @@ function blog_addons_block($op='list', $
       {
         $limit = " AND YEAR(FROM_UNIXTIME(n.created)) = " . $year;
         $limit .= " AND MONTH(FROM_UNIXTIME(n.created)) = " . $month_numeric;
-        $query = "SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 AND n.uid = " . $account->uid . $limit . " ORDER By n.created DESC ";
-        $postpermonth =  mysql_num_rows(db_query($query));
+	$query = "SELECT COUNT(n.nid) FROM {node} n WHERE n.type = 'blog' AND n.status = 1 AND n.uid = " . $account->uid . $limit . " ORDER By n.created DESC ";
+	$postpermonth = db_result(db_query($query));
 
         $bcontent .= "<li>" . l($month,'blog/' . $account->name . '/' . $year . '/' . $month_numeric)  . " (" . $postpermonth . ") </li>";
 	$lastmonth = $month;
