summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-20 15:30:45 +0300
committerAndrew Dolgov <[email protected]>2010-11-20 15:30:45 +0300
commite2eda97930a509673e2055c91308991dfd017ea4 (patch)
tree74aae08f51de9b199a666387cfb46434e8b4fc1d /functions.php
parentf9c388f50944e2e85df0d61ef76e3d2fedbdaf54 (diff)
getFeedIcon: check if real feed icon file exists
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php3
1 files changed, 2 insertions, 1 deletions
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;
}