Ensure translations variable is set before use

This commit is contained in:
Samuel Mannehed 2016-10-28 18:40:56 +02:00
parent a4fc1fa586
commit 9e26112d1a
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ Util.Localisation = {
// Retrieve localised text
get: function (id) {
if (Language[id]) {
if (typeof Language !== 'undefined' && Language[id]) {
return Language[id];
} else {
return id;