Node.js based forum software built for the modern web
fix crash if locale is undefined
Barış Soner Uşaklı986e52897da7
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.jsindex 3f02a86758..5a8e998f5c 100644--- a/public/src/modules/helpers.js+++ b/public/src/modules/helpers.js@@ -177,7 +177,7 @@};helpers.localeToHTML = function (locale) {- return locale.replace('_', '-');+ return locale ? locale.replace('_', '-') : '';};helpers.renderTopicImage = function (topicObj) {