Make sure _with value is not null when trying to replace it into url, it causes broken url while using _replace argument from refresh_opener

This commit is contained in:
Ralf Becker 2014-08-22 13:20:07 +00:00
parent 9e749e516d
commit 056e5a1e96

View File

@ -273,7 +273,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
if (typeof _replace != 'undefined')
{
href = href.replace(typeof _replace == 'string' ? new RegExp(_replace) : _replace, typeof _with != 'undefined' ? _with : '');
href = href.replace(typeof _replace == 'string' ? new RegExp(_replace) : _replace, (typeof _with != 'undefined' && _with != null) ? _with : '');
}
if (href.indexOf('msg=') != -1)