* modify count

This commit is contained in:
wangzemei
2022-09-15 09:07:39 +00:00
parent eed29fef1f
commit ea779aab36
+1 -5
View File
@@ -4256,11 +4256,7 @@ class storyModel extends model
$title = $isClick ? $title : $this->lang->story->recallTip['actived'];
$storyPriv = array(common::hasPriv('story', 'processStoryChange'), common::hasPriv('story', 'change'), common::hasPriv('story', 'submitReview'), common::hasPriv('story', 'review'), common::hasPriv('story', 'close'));
$storyPrivCount = 0;
foreach($storyPriv as $value)
{
if($value == 1) $storyPrivCount ++;
}
$storyPrivCount = array_sum($storyPriv);
if(common::hasPriv('story', 'recall') && ($storyPrivCount > 1))
{
$menu .= "<div class='btn-group dropup' style='margin-left:-5px;'>";