mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
additional check for existance of application in lang array
This commit is contained in:
parent
e1eefeaafa
commit
55bf8f9570
@ -120,7 +120,8 @@ else
|
|||||||
var apps = [window.egw_appName, 'etemplate', 'common'];
|
var apps = [window.egw_appName, 'etemplate', 'common'];
|
||||||
for(var i = 0; i < apps.length; ++i)
|
for(var i = 0; i < apps.length; ++i)
|
||||||
{
|
{
|
||||||
if (typeof this.lang_arr[apps[i]][_msg] != 'undefined')
|
if (typeof this.lang_arr[apps[i]] != "undefined" &&
|
||||||
|
typeof this.lang_arr[apps[i]][_msg] != 'undefined')
|
||||||
{
|
{
|
||||||
translation = this.lang_arr[apps[i]][_msg];
|
translation = this.lang_arr[apps[i]][_msg];
|
||||||
break;
|
break;
|
||||||
@ -254,4 +255,4 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user