修正错误的数据堆栈

This commit is contained in:
dawnlight
2018-07-23 12:38:23 +08:00
parent e72e723c1e
commit 8d4c8698de
+2 -1
View File
@@ -282,8 +282,9 @@ class Widget_Comments_Archive extends Widget_Abstract_Comments
($this->_currentPage - 1) * $this->options->commentsPageSize, $this->options->commentsPageSize);
/** 评论置位 */
if ($this->_total !== 0)
if (0 !== count($this->stack)) {
$this->row = current($this->stack);
}
$this->length = count($this->stack);
}