From: Andrew Dolgov Date: Sat, 20 Nov 2010 12:30:45 +0000 (+0300) Subject: getFeedIcon: check if real feed icon file exists X-Git-Tag: 1.5.0~113 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e2eda97930a509673e2055c91308991dfd017ea4;p=tt-rss.git getFeedIcon: check if real feed icon file exists --- diff --git a/functions.php b/functions.php index 3f18392a..7f287e7c 100644 --- a/functions.php +++ b/functions.php @@ -3048,7 +3048,8 @@ if ($id < -10) { return "images/label.png"; } else { - return ICONS_URL . "/$id.ico"; + if (file_exists(ICONS_DIR . "/$id.ico")) + return ICONS_URL . "/$id.ico"; } break; }