mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-13 15:08:33 +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
|
* @param object _message message => translation pairs
|
||||||
*/
|
*/
|
||||||
set_lang_arr: function(_app, _messages)
|
set_lang_arr: function(_app, _messages)
|
||||||
|
{
|
||||||
|
if(!jQuery.isArray(_messages))
|
||||||
{
|
{
|
||||||
lang_arr[_app] = _messages;
|
lang_arr[_app] = _messages;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user