summaryrefslogtreecommitdiff
path: root/lib/attachmentlist.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-18 19:03:44 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-18 19:03:44 +0000
commit23d6d19e75f273bf6e72fbcbbf8e6789f77d07ff (patch)
tree848e8c837c619fb732b128c0efdba1be5d585cf4 /lib/attachmentlist.php
parent95eff9c76606509de19db36c78c66ac68f87cf12 (diff)
Better attachment view check
Diffstat (limited to 'lib/attachmentlist.php')
-rw-r--r--lib/attachmentlist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php
index 7bd441bf4..a2446a886 100644
--- a/lib/attachmentlist.php
+++ b/lib/attachmentlist.php
@@ -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)) {