@@ -1139,7 +1139,7 @@ class BxDolCmts extends BxDolFactory implements iBxDolReplaceable, iBxDolContent
public function isPinAllowed ($aCmt, $isPerformAction = false)
{
- if((int)$aCmt['cmt_pinned'] != 0)
+ if((int)$aCmt['cmt_parent_id'] != 0 || (int)$aCmt['cmt_pinned'] != 0)
return false;
if(isAdmin())
@@ -421,7 +421,7 @@ class BxBaseCmts extends BxDolCmts
}
$sReplies = '';
- if(!empty($aDp)) {
+ if(!(isset($aBp['pinned']) && (int)$aBp['pinned'] != 0 && (int)$aCmt['cmt_pinned'] != 0) && !empty($aDp)) {
$aDp['show_empty'] = false;
if(!empty($aDp['structure'][$aCmt['cmt_id']]) && is_array($aDp['structure'][$aCmt['cmt_id']])) {