summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-23 22:37:06 +0400
committerAndrew Dolgov <[email protected]>2013-04-23 22:37:06 +0400
commit6ee0d4b05c2f159aa828274f2f4e0f5548d1890e (patch)
treee93e9a43fb39884c39d92094dd6189d1f4c4445e /include
parent560cbd8c0dc1bdd7418c2e259d80c78281039769 (diff)
do not recalculate avg color repeatedly
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index bc054ca52..870d77203 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -433,7 +433,7 @@
if ($favicon_modified_new > $favicon_modified)
$favicon_avg_color = '';
- if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color != 'fail') {
+ if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color == '') {
require_once "colors.php";
$favicon_color = db_escape_string(