Don't start <p> element until we've checked for attachments

This commit is contained in:
Evan Prodromou 2011-10-20 10:57:58 -04:00
parent ba3f6b2db9
commit e64ae1f03d
1 changed files with 2 additions and 3 deletions

View File

@ -60,8 +60,6 @@ class BookmarkListItem extends NoticeListItemAdapter
$notice = $this->nli->notice;
$out = $this->nli->out;
$out->elementStart('p', array('class' => 'entry-content'));
$nb = Bookmark::getByNotice($notice);
$profile = $notice->getProfile();
@ -85,9 +83,10 @@ class BookmarkListItem extends NoticeListItemAdapter
parent::showContent();
return;
}
$out->elementStart('p', array('class' => 'entry-content'));
$att = $atts[0];
$out->elementStart('h3');