From e2eda97930a509673e2055c91308991dfd017ea4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 Nov 2010 15:30:45 +0300 Subject: [PATCH] getFeedIcon: check if real feed icon file exists --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 3f18392a8..7f287e7cb 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; }