forked from extern/egroupware
Make sure lang 'array' is not a real array - that means it's empty, and will return 0 for missing translations. It is supposed to be an object.
This commit is contained in:
parent
ad83103362
commit
234832d1f0
@ -37,7 +37,10 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
|
||||
*/
|
||||
set_lang_arr: function(_app, _messages)
|
||||
{
|
||||
lang_arr[_app] = _messages;
|
||||
if(!jQuery.isArray(_messages))
|
||||
{
|
||||
lang_arr[_app] = _messages;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user