mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
Do not warn about translating nulls, just return empty string
This commit is contained in:
parent
27e2f787a1
commit
db0e368f86
@ -59,6 +59,10 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
|
|||||||
*/
|
*/
|
||||||
lang: function(_msg, _arg1)
|
lang: function(_msg, _arg1)
|
||||||
{
|
{
|
||||||
|
if(_msg === null)
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
if(typeof _msg !== "string" && _msg)
|
if(typeof _msg !== "string" && _msg)
|
||||||
{
|
{
|
||||||
egw().debug("warn", "Cannot translate an object", _msg);
|
egw().debug("warn", "Cannot translate an object", _msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user