Better attachment view check

This commit is contained in:
Sarven Capadisli 2009-06-18 19:03:44 +00:00
parent 95eff9c766
commit 23d6d19e75
1 changed files with 1 additions and 1 deletions

View 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)) {