fix javascript error "no method indexOf of undefined"

This commit is contained in:
Ralf Becker 2014-10-06 09:58:46 +00:00
parent eb4537ab0e
commit d6b3362420

View File

@ -674,6 +674,7 @@ app.classes.mail = AppJS.extend(
var remembervalue = ''; var remembervalue = '';
for(var i = 0; i < content.length; i++) for(var i = 0; i < content.length; i++)
{ {
if (typeof content[i] != 'string' || !content[i]) continue;
// if there is no @ in string, its most likely that we have a comma in the personal name part of the emailaddress // if there is no @ in string, its most likely that we have a comma in the personal name part of the emailaddress
if (content[i].indexOf('@')<0) if (content[i].indexOf('@')<0)
{ {