Skip to content

Commit

Permalink
avoid undefined in rssTerminal
Browse files Browse the repository at this point in the history
  • Loading branch information
lotus committed Apr 26, 2009
1 parent 2e31861 commit 2714ff0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htroot/rssTerminal.html
Expand Up @@ -107,7 +107,9 @@
function showRSS(RSS) {
//populate the items
for (var i=0; i<RSS.items.length; i++) {
if (RSS.items[i].title != null) addLine(RSS.items[i].title + ":" + RSS.items[i].link);
if (RSS.items[i].title != null) {
if (RSS.items[i].link != null) addLine(RSS.items[i].title + ":" + RSS.items[i].link);
else addLine(RSS.items[i].title); }
if (RSS.items[i].description != null) addLine(tab + RSS.items[i].description);
}
return true;
Expand Down

0 comments on commit 2714ff0

Please sign in to comment.