mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-24 16:40:30 +00:00
Merge branch 'dev' of https://github.com/inthepoche/poche into dev
This commit is contained in:
commit
f41d00ed8a
1 changed files with 2 additions and 2 deletions
4
inc/3rdparty/FlattrItem.class.php
vendored
4
inc/3rdparty/FlattrItem.class.php
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue