summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/contacts/js/contacts.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index 94876f5cd09..4ede2ff4336 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -424,11 +424,11 @@ Contacts={
} else {
narray = this.data.N[0]['value'];
}
- this.famname = narray[0];
- this.givname = narray[1];
- this.addname = narray[2];
- this.honpre = narray[3];
- this.honsuf = narray[4];
+ this.famname = narray[0] || '';
+ this.givname = narray[1] || '';
+ this.addname = narray[2] || '';
+ this.honpre = narray[3] || '';
+ this.honsuf = narray[4] || '';
if(this.honpre.length > 0) {
this.fullname += this.honpre + ' ';
}