]> git.wh0rd.org - tt-rss.git/commitdiff
getFeedIcon: check if real feed icon file exists
authorAndrew Dolgov <fox@fakecake.org>
Sat, 20 Nov 2010 12:30:45 +0000 (15:30 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sat, 20 Nov 2010 12:30:45 +0000 (15:30 +0300)
functions.php

index 3f18392a802d539ecb0b62c15be256d10a222c35..7f287e7cb836b802611825eec43ce3df9fbc860f 100644 (file)
                        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;
                }