修正分类归档计数错误

This commit is contained in:
joyqi
2014-02-25 11:58:20 +08:00
parent 8e7bf64397
commit 4cd7184b5b
3 changed files with 57 additions and 24 deletions
+2 -1
View File
@@ -890,7 +890,8 @@ class Widget_Archive extends Widget_Abstract_Contents
/** fix sql92 by 70 */
$select->join('table.relationships', 'table.contents.cid = table.relationships.cid')
->where('table.relationships.mid IN ?', $children)
->where('table.contents.type = ?', 'post');
->where('table.contents.type = ?', 'post')
->group('table.contents.cid');
/** 设置分页 */
$this->_pageRow = array_merge($category, array(