From 8dd8b58b4525936128d52f4e8210e488ad9c4693 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 21 Apr 2011 14:53:17 -0400 Subject: [PATCH] don't use thumbnail if it's not there --- plugins/Bookmark/bookmarkform.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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',