Index: branches/5.3.x/units/posts/post_tp.php =================================================================== diff -u -N -r15694 -r16397 --- branches/5.3.x/units/posts/post_tp.php (.../post_tp.php) (revision 15694) +++ branches/5.3.x/units/posts/post_tp.php (.../post_tp.php) (revision 16397) @@ -1,6 +1,6 @@ Application->LoggedIn() ) { + $show_signatures = $this->Application->RecallPersistentVar('bb_signatures'); + } + else { + $show_signatures = false; + } + } + + if ( !$show_signatures ) { + return false; + } + + /** @var kDBItem $object */ $object = $this->getObject($params); - $post_options = $object->GetDBField('Options'); + /** @var PostHelper $post_helper */ $post_helper = $this->Application->recallObject('PostHelper'); - /* @var $post_helper PostHelper */ - // show poster signature in this post - if ($post_helper->GetPostOption('show_sig', $post_options)) { - // logged-in user wishes to view signatures in posts - $show_other_signatures = $this->Application->RecallPersistentVar('bb_signatures'); - if ($show_other_signatures) { - // don't show signature when it is empty - $signature = $this->getUserSignature($object->GetDBField('CreatedById')); - return strlen(trim($signature)) ? true : false; - } + // Show poster signature in this post. + if ( $post_helper->GetPostOption('show_sig', $object->GetDBField('Options')) ) { + // Don't show signature when it is empty. + $signature = $this->getUserSignature($object->GetDBField('CreatedById')); + + return strlen(trim($signature)) ? true : false; } return false; @@ -310,4 +323,4 @@ } return parent::PageLink($params); } - } \ No newline at end of file + }