don't use thumbnail if it's not there
This commit is contained in:
parent
36d56232c6
commit
8dd8b58b45
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user