mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
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
@ -36,8 +36,11 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
|
||||
* @param object _message message => translation pairs
|
||||
*/
|
||||
set_lang_arr: function(_app, _messages)
|
||||
{
|
||||
if(!jQuery.isArray(_messages))
|
||||
{
|
||||
lang_arr[_app] = _messages;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user