summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-15 18:22:48 +0400
committerAndrew Dolgov <[email protected]>2013-04-15 18:22:48 +0400
commitbc7a144dd589302025c3b024d6da71f2e53d6496 (patch)
tree94b16695972e4476b4582b55a7a36936b1fd9d28 /include/rssfuncs.php
parent86f7d2a9f2b6468a34b20d7a26c7cfc3afbe00ee (diff)
properly remove and replace favicon color when favicon gets manually removed/uploaded
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 250534bd7..283e48532 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -412,17 +412,16 @@
$favicon_file = ICONS_DIR . "/$feed.ico";
if (file_exists($favicon_file)) {
- require_once "colors.php";
+ require_once "colors.php";
- $favicon_color = db_escape_string($link,
- calculate_avg_color($favicon_file));
+ $favicon_color = db_escape_string($link,
+ calculate_avg_color($favicon_file));
- if ($debug_enabled) _debug("color: $favicon_color");
-
- $favicon_colorstring = ",favicon_avg_color = '".$favicon_color."'";
+ $favicon_colorstring = ",favicon_avg_color = '".$favicon_color."'";
}
- db_query($link, "UPDATE ttrss_feeds SET favicon_last_checked = NOW() $favicon_colorstring
+ db_query($link, "UPDATE ttrss_feeds SET favicon_last_checked = NOW()
+ $favicon_colorstring
WHERE id = '$feed'");
}