getFeedName: return empty string instead of null when element is not found
This commit is contained in:
parent
6c70137c73
commit
b71a7df9ed
|
@ -882,6 +882,8 @@ function resort_category(node, cat_mode) {
|
|||
var tmp_val = get_feed_entry_unread(list[i]);
|
||||
var cur_val = get_feed_entry_unread(list[j]);
|
||||
|
||||
//console.log(list[i].id + " vs " + list[j].id);
|
||||
|
||||
var tmp_name = get_feed_entry_name(list[i]).toLowerCase();
|
||||
var cur_name = get_feed_entry_name(list[j]).toLowerCase();
|
||||
|
||||
|
@ -999,7 +1001,7 @@ function getFeedName(id, is_cat) {
|
|||
if (e) {
|
||||
return e.innerHTML.stripTags();
|
||||
} else {
|
||||
return null;
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue