From c2e00e2bd5ea7be6fdd5b41a259835d7bbbbcda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Sat, 29 Jan 2022 16:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E7=BB=9F=E8=AE=A1=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_forumlist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/source/function/function_forumlist.php b/upload/source/function/function_forumlist.php index 19ebe48c8..235278166 100644 --- a/upload/source/function/function_forumlist.php +++ b/upload/source/function/function_forumlist.php @@ -395,14 +395,14 @@ function forumleftside() { return $leftside; } -function threadclasscount($fid, $id = 0, $idtype = '', $count = 0) { +function threadclasscount($fid, $id = 0, $idtype = '', $count = null) { if(!$fid) { return false; } $typeflag = ($id && $idtype && in_array($idtype, array('typeid', 'sortid'))); $threadclasscount = C::t('common_cache')->fetch('threadclasscount_'.$fid); $threadclasscount = dunserialize($threadclasscount['cachevalue']); - if($count) { + if($count !== null) { if($typeflag) { $threadclasscount[$idtype][$id] = $count; C::t('common_cache')->insert(array( -- Gitee