We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8dd8b58b authored by Evan Prodromou's avatar Evan Prodromou

don't use thumbnail if it's not there

parent 36d56232
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment