(fix) make sure an email is defined before trying to use it (#3488)
parent
cf91004ae6
commit
5413ac8aa3
|
@ -168,7 +168,7 @@
|
|||
if (data.name.split(' ').length)
|
||||
data.shortname = data.name.split(' ')[0].replace('\'','');
|
||||
}
|
||||
else {
|
||||
else if (data.email) {
|
||||
data.full = '<' + data.email + '>';
|
||||
data.shortname = data.email.split('@')[0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue