From 91ae05381677e521767d4dad6fa9bbaaca567ed1 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 22 Jun 2022 16:41:36 +0800 Subject: [PATCH] * Code for task#57851. --- module/doc/model.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index 53c33f13e0..4cb0be8c53 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1443,10 +1443,13 @@ class docModel extends model $libs = array(); foreach($objectLibs as $lib) { - if($this->checkPrivLib($lib)) $libs[$lib->id] = $lib; + if($this->checkPrivLib($lib)) + { + $docCount = zget($docCountPairs, $lib->id, 0); + $lib->docCount = $docCount > 99 ? '99+' : $docCount; - $docCount = zget($docCountPairs, $lib->id, 0); - $libs[$lib->id]->docCount = $docCount > 99 ? '99+' : $docCount; + $libs[$lib->id] = $lib; + } } $itemCounts = $this->statLibCounts(array_keys($libs));