diff options
author | Thomas Citharel <thomas.citharet@gmail.com> | 2014-01-04 21:50:08 +0100 |
---|---|---|
committer | Thomas Citharel <thomas.citharet@gmail.com> | 2014-01-04 21:50:08 +0100 |
commit | 607e12b4f2ad9881ac8dd3195fc44c36375583f5 (patch) | |
tree | e9f915533cf8007a4fea44e774a1d5c2ac587e4d /inc | |
parent | 7f667839764621b5aa01c9db8ce5dde2a29ef18f (diff) | |
download | wallabag-607e12b4f2ad9881ac8dd3195fc44c36375583f5.tar.gz wallabag-607e12b4f2ad9881ac8dd3195fc44c36375583f5.tar.zst wallabag-607e12b4f2ad9881ac8dd3195fc44c36375583f5.zip |
Fixes bug 359
Diffstat (limited to 'inc')
-rw-r--r-- | inc/3rdparty/FlattrItem.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/3rdparty/FlattrItem.class.php b/inc/3rdparty/FlattrItem.class.php index 0d3e69d0..711b4ee0 100644 --- a/inc/3rdparty/FlattrItem.class.php +++ b/inc/3rdparty/FlattrItem.class.php | |||
@@ -14,12 +14,12 @@ class FlattrItem { | |||
14 | $flattrResponse = file_get_contents(CACHE . "/flattr/".$id.".cache"); | 14 | $flattrResponse = file_get_contents(CACHE . "/flattr/".$id.".cache"); |
15 | if($flattrResponse != FALSE) { | 15 | if($flattrResponse != FALSE) { |
16 | $result = json_decode($flattrResponse); | 16 | $result = json_decode($flattrResponse); |
17 | if (isset($result->message)){ | 17 | if (isset($result->message)){ |
18 | if ($result->message == "flattrable") { | 18 | if ($result->message == "flattrable") { |
19 | $this->status = FLATTRABLE; | 19 | $this->status = FLATTRABLE; |
20 | } | 20 | } |
21 | } | 21 | } |
22 | elseif ($result->link) { | 22 | elseif (is_object($result) && $result->link) { |
23 | $this->status = FLATTRED; | 23 | $this->status = FLATTRED; |
24 | $this->flattrItemURL = $result->link; | 24 | $this->flattrItemURL = $result->link; |
25 | $this->numflattrs = $result->flattrs; | 25 | $this->numflattrs = $result->flattrs; |