Skip to content

Commit 7bb6441

Browse files
committed
Fixed error in filterSubtitle
1 parent 0d01ebd commit 7bb6441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/language.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ var populateCategories = function() {
5050
App.Localization.filterSubtitle = function(langs) {
5151
var filteredLang = {};
5252
_.each(langs, function(data, lang){
53-
if(App.Localization.languages[lang].subtitle) {
53+
var langInfo = App.Localization.languages[lang];
54+
if(langInfo && langInfo.subtitle) {
5455
filteredLang[lang] = data;
5556
}
5657
});

0 commit comments

Comments
 (0)