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
1 changed files with 4 additions and 3 deletions

View File

@ -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',