diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-17 21:34:12 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-01-18 09:56:32 +0100 |
commit | e26e2060f5470ce8bf4c5973284bae07b8af170a (patch) | |
tree | adf8512f93f5559ba87d0c9931969ae4ebea7133 /application/bookmark/Bookmark.php | |
parent | cf92b4dd1521241eefc58eaf6dcd202cd83969d8 (diff) | |
download | Shaarli-e26e2060f5470ce8bf4c5973284bae07b8af170a.tar.gz Shaarli-e26e2060f5470ce8bf4c5973284bae07b8af170a.tar.zst Shaarli-e26e2060f5470ce8bf4c5973284bae07b8af170a.zip |
Add and update unit test for the new system (Bookmark + Service)
See #1307
Diffstat (limited to 'application/bookmark/Bookmark.php')
-rw-r--r-- | application/bookmark/Bookmark.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/bookmark/Bookmark.php b/application/bookmark/Bookmark.php index b08e5d67..f9b21d3d 100644 --- a/application/bookmark/Bookmark.php +++ b/application/bookmark/Bookmark.php | |||
@@ -65,8 +65,8 @@ class Bookmark | |||
65 | $this->url = $data['url']; | 65 | $this->url = $data['url']; |
66 | $this->title = $data['title']; | 66 | $this->title = $data['title']; |
67 | $this->description = $data['description']; | 67 | $this->description = $data['description']; |
68 | $this->thumbnail = ! empty($data['thumbnail']) ? $data['thumbnail'] : null; | 68 | $this->thumbnail = isset($data['thumbnail']) ? $data['thumbnail'] : null; |
69 | $this->sticky = ! empty($data['sticky']) ? $data['sticky'] : false; | 69 | $this->sticky = isset($data['sticky']) ? $data['sticky'] : false; |
70 | $this->created = $data['created']; | 70 | $this->created = $data['created']; |
71 | if (is_array($data['tags'])) { | 71 | if (is_array($data['tags'])) { |
72 | $this->tags = $data['tags']; | 72 | $this->tags = $data['tags']; |