]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/bookmark/Bookmark.php
Process picwall rendering through Slim controller + UT
[github/shaarli/Shaarli.git] / application / bookmark / Bookmark.php
index b08e5d67262b68516a345dc3b403e3d01173e38e..83ddab825abed20492cd37452f3cd446bb6b3de1 100644 (file)
@@ -65,8 +65,8 @@ class Bookmark
         $this->url = $data['url'];
         $this->title = $data['title'];
         $this->description = $data['description'];
-        $this->thumbnail = ! empty($data['thumbnail']) ? $data['thumbnail'] : null;
-        $this->sticky = ! empty($data['sticky']) ? $data['sticky'] : false;
+        $this->thumbnail = isset($data['thumbnail']) ? $data['thumbnail'] : null;
+        $this->sticky = isset($data['sticky']) ? $data['sticky'] : false;
         $this->created = $data['created'];
         if (is_array($data['tags'])) {
             $this->tags = $data['tags'];
@@ -346,7 +346,7 @@ class Bookmark
     /**
      * Get the Thumbnail.
      *
-     * @return string|bool
+     * @return string|bool|null
      */
     public function getThumbnail()
     {