From e64ae1f03d8f57195c1910da39367d5467eecbf2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 20 Oct 2011 10:57:58 -0400 Subject: [PATCH] Don't start

element until we've checked for attachments --- plugins/Bookmark/bookmarklistitem.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/Bookmark/bookmarklistitem.php b/plugins/Bookmark/bookmarklistitem.php index 381864c21c..9b7a3742fa 100644 --- a/plugins/Bookmark/bookmarklistitem.php +++ b/plugins/Bookmark/bookmarklistitem.php @@ -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'); -- 2.39.5