diff options
author | Andrew Dolgov <[email protected]> | 2010-11-20 15:30:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-20 15:30:45 +0300 |
commit | e2eda97930a509673e2055c91308991dfd017ea4 (patch) | |
tree | 74aae08f51de9b199a666387cfb46434e8b4fc1d | |
parent | f9c388f50944e2e85df0d61ef76e3d2fedbdaf54 (diff) |
getFeedIcon: check if real feed icon file exists
-rw-r--r-- | functions.php | 3 |
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; } |