From: Evan Prodromou Date: Thu, 21 Apr 2011 18:53:17 +0000 (-0400) Subject: don't use thumbnail if it's not there X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8dd8b58b4525936128d52f4e8210e488ad9c4693;p=quix0rs-gnu-social.git don't use thumbnail if it's not there --- diff --git a/plugins/Bookmark/bookmarkform.php b/plugins/Bookmark/bookmarkform.php index 2158a65caf..20101e1eff 100644 --- a/plugins/Bookmark/bookmarkform.php +++ b/plugins/Bookmark/bookmarkform.php @@ -124,10 +124,11 @@ class BookmarkForm extends Form 'url'); $this->unli(); - list($width, $height) = $this->scaleImage($this->_thumbnail->width, - $this->_thumbnail->height); - if (!empty($this->_thumbnail)) { + + list($width, $height) = $this->scaleImage($this->_thumbnail->width, + $this->_thumbnail->height); + $this->out->element('img', array('src' => $this->_thumbnail->url, 'class' => 'bookmarkform-thumbnail',