From 80ece29f8e51c71da7a30a98def84a005d0e5cfd Mon Sep 17 00:00:00 2001 From: David McReynolds Date: Fri, 9 Mar 2012 09:49:53 -0800 Subject: [PATCH] Fix for Fuel_blog::get_post_count method when a category parameter is passed --- fuel/modules/blog/libraries/Fuel_blog.php | 1 + 1 file changed, 1 insertion(+) diff --git a/fuel/modules/blog/libraries/Fuel_blog.php b/fuel/modules/blog/libraries/Fuel_blog.php index a31cfceca..fb89d02a0 100644 --- a/fuel/modules/blog/libraries/Fuel_blog.php +++ b/fuel/modules/blog/libraries/Fuel_blog.php @@ -423,6 +423,7 @@ function get_post_count($category = NULL) { $where[$tables['blog_posts'].'.published'] = 'yes'; $where[$tables['blog_categories'].'.name'] = $category; + $this->_CI->blog_posts_model->_common_query(); $cnt = $this->_CI->blog_posts_model->record_count($where); } else