From: Evan Prodromou Date: Thu, 20 Oct 2011 14:57:58 +0000 (-0400) Subject: Don't start

element until we've checked for attachments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e64ae1f03d8f57195c1910da39367d5467eecbf2;p=quix0rs-gnu-social.git Don't start

element until we've checked for attachments --- 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');