1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-27 09:01:28 +00:00

only enable colored favicons in vfeeds; fix RGB triplet packing

This commit is contained in:
Andrew Dolgov
2013-04-15 15:17:12 +04:00
parent 687a4f59c8
commit 63c323f736
3 changed files with 12 additions and 5 deletions

View File

@@ -416,9 +416,13 @@
require_once "colors.php";
if (is_array($favicon_color))
$favicon_colorstring = ",favicon_avg_color = '" .
_color_pack(array_slice($favicon_color, 0, 3)) . "'";
if (is_array($favicon_color))
$tmp = array($favicon_color['red'],
$favicon_color['green'],
$favicon_color['blue']);
$favicon_colorstring = ",favicon_avg_color = '" .
_color_pack($tmp) . "'";
}
db_query($link, "UPDATE ttrss_feeds SET favicon_last_checked = NOW() $favicon_colorstring