]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't start <p> element until we've checked for attachments
authorEvan Prodromou <evan@status.net>
Thu, 20 Oct 2011 14:57:58 +0000 (10:57 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 20 Oct 2011 14:57:58 +0000 (10:57 -0400)
plugins/Bookmark/bookmarklistitem.php

index 381864c21cf53ee90600268eaccfae75aeb28aeb..9b7a3742fa12303b1cb11bf58d2a268bf00da32f 100644 (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');