From: Thomas Citharel Date: Mon, 22 Dec 2014 15:26:23 +0000 (+0100) Subject: don't call flattr if flattr is disabled X-Git-Tag: 1.9beta~40^2^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=37cad52229ac61b13f69440243df54e0e2a4536f;p=github%2Fwallabag%2Fwallabag.git don't call flattr if flattr is disabled --- diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 27d6f4a6..a29cb327 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -405,9 +405,12 @@ class Poche } # flattr checking - $flattr = new FlattrItem(); - $flattr->checkItem($entry['url'], $entry['id']); - + $flattr = NULL; + if (FLATTR) { + $flattr = new FlattrItem(); + $flattr->checkItem($entry['url'], $entry['id']); + } + # tags $tags = $this->store->retrieveTagsByEntry($entry['id']); @@ -812,4 +815,4 @@ class Poche } -} \ No newline at end of file +}