Do not warn about translating nulls, just return empty string

This commit is contained in:
Nathan Gray 2015-04-21 19:47:23 +00:00
parent 27e2f787a1
commit db0e368f86

View File

@ -59,6 +59,10 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
*/
lang: function(_msg, _arg1)
{
if(_msg === null)
{
return '';
}
if(typeof _msg !== "string" && _msg)
{
egw().debug("warn", "Cannot translate an object", _msg);