]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't use thumbnail if it's not there
authorEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 18:53:17 +0000 (14:53 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 18:53:17 +0000 (14:53 -0400)
plugins/Bookmark/bookmarkform.php

index 2158a65caf1e47e01e52850ddf4946d9ea1603c2..20101e1effbd3e15ba68f5e9f37eacfcca272423 100644 (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',