mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
(fix) make sure an email is defined before trying to use it (#3488)
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user