(fix) make sure an email is defined before trying to use it (#3488)

pull/195/merge
Ludovic Marcotte 2016-02-03 09:00:08 -05:00
parent cf91004ae6
commit 5413ac8aa3
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}