]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Better attachment view check
authorSarven Capadisli <csarven@controlyourself.ca>
Thu, 18 Jun 2009 19:03:44 +0000 (19:03 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Thu, 18 Jun 2009 19:03:44 +0000 (19:03 +0000)
lib/attachmentlist.php

index 7bd441bf4da237bdc116ee152f26164b8b868bc2..a2446a886a73715193f9ea68f36fcc149733b312 100644 (file)
@@ -253,7 +253,7 @@ class Attachment extends AttachmentListItem
         $this->out->elementEnd('a');
         $this->out->elementEnd('div');
 
-        if ($this->oembed->author_name || $this->oembed->provider) {
+        if (!empty($this->oembed->author_name) || !empty($this->oembed->provider)) {
             $this->out->elementStart('div', array('id' => 'oembed_info', 
                                                   'class' => 'entry-content'));
             if (!empty($this->oembed->author_name)) {