]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedtree: don't request null icon
authorAndrew Dolgov <fox@fakecake.org>
Wed, 17 Apr 2013 05:09:51 +0000 (09:09 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 17 Apr 2013 05:09:51 +0000 (09:09 +0400)
include/functions.php
js/FeedTree.js

index 0148d069dddc8d385108ba24f1ea48bfcc2d9a5a..43138a1f9af9c968c8bbb1e4d5f756e6c6117f24 100644 (file)
                        }
                        break;
                }
+
+               return false;
        }
 
        function getFeedTitle($link, $id, $cat = false) {
index bb50d6fbb5b44af08941bc8d3820056a51665b8c..fbddb708f34cae5b606f6affa5093cd306f4ea49 100644 (file)
@@ -100,7 +100,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
        _createTreeNode: function(args) {
                var tnode = new dijit._TreeNode(args);
 
-               if (args.item.icon)
+               if (args.item.icon && args.item.icon[0])
                        tnode.iconNode.src = args.item.icon[0];
 
                var id = args.item.id[0];