mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-20 06:03:20 +00:00
Monotone-Parent: 8d6e71b994b7d6f015c187ce841c7ffee79c5b0d
Monotone-Revision: 9b75a56ce8daf9300f46778c1489c7a8d55088da Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-26T18:41:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -259,11 +259,19 @@
|
||||
{
|
||||
NSArray *n, *elements;
|
||||
CardElement *element;
|
||||
unsigned int max;
|
||||
|
||||
n = [card n];
|
||||
|
||||
[self _setSnapshotValue: @"sn" to: [n objectAtIndex: 0]];
|
||||
[self _setSnapshotValue: @"givenName" to: [n objectAtIndex: 1]];
|
||||
if (n)
|
||||
{
|
||||
max = [n count];
|
||||
if (max > 0)
|
||||
{
|
||||
[self _setSnapshotValue: @"sn" to: [n objectAtIndex: 0]];
|
||||
if (max > 1)
|
||||
[self _setSnapshotValue: @"givenName" to: [n objectAtIndex: 1]];
|
||||
}
|
||||
}
|
||||
[self _setSnapshotValue: @"fn" to: [card fn]];
|
||||
[self _setSnapshotValue: @"nickname" to: [card nickname]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user