don't use thumbnail if it's not there

This commit is contained in:
Evan Prodromou 2011-04-21 14:53:17 -04:00
parent 36d56232c6
commit 8dd8b58b45

View File

@ -124,10 +124,11 @@ class BookmarkForm extends Form
'url'); 'url');
$this->unli(); $this->unli();
list($width, $height) = $this->scaleImage($this->_thumbnail->width,
$this->_thumbnail->height);
if (!empty($this->_thumbnail)) { if (!empty($this->_thumbnail)) {
list($width, $height) = $this->scaleImage($this->_thumbnail->width,
$this->_thumbnail->height);
$this->out->element('img', $this->out->element('img',
array('src' => $this->_thumbnail->url, array('src' => $this->_thumbnail->url,
'class' => 'bookmarkform-thumbnail', 'class' => 'bookmarkform-thumbnail',