From 8d4c8698ded823845552963770b80dc80941af26 Mon Sep 17 00:00:00 2001 From: dawnlight Date: Mon, 23 Jul 2018 12:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A0=86=E6=A0=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Comments/Archive.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/Widget/Comments/Archive.php b/var/Widget/Comments/Archive.php index 14844f70..5d84cc7d 100644 --- a/var/Widget/Comments/Archive.php +++ b/var/Widget/Comments/Archive.php @@ -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); }