From 607e12b4f2ad9881ac8dd3195fc44c36375583f5 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 4 Jan 2014 21:50:08 +0100 Subject: [PATCH] Fixes bug 359 --- inc/3rdparty/FlattrItem.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/3rdparty/FlattrItem.class.php b/inc/3rdparty/FlattrItem.class.php index 0d3e69d..711b4ee 100644 --- a/inc/3rdparty/FlattrItem.class.php +++ b/inc/3rdparty/FlattrItem.class.php @@ -14,12 +14,12 @@ class FlattrItem { $flattrResponse = file_get_contents(CACHE . "/flattr/".$id.".cache"); if($flattrResponse != FALSE) { $result = json_decode($flattrResponse); - if (isset($result->message)){ + if (isset($result->message)){ if ($result->message == "flattrable") { $this->status = FLATTRABLE; } } - elseif ($result->link) { + elseif (is_object($result) && $result->link) { $this->status = FLATTRED; $this->flattrItemURL = $result->link; $this->numflattrs = $result->flattrs;