fix: privat flag not working with syncML

This commit is contained in:
Cornelius Weiß 2007-07-02 18:35:39 +00:00
parent 33e8f690c3
commit b331036715
2 changed files with 5 additions and 3 deletions

View File

@ -443,7 +443,10 @@ class bocontacts extends socontacts
if (($old = $this->read($contact['id']))) // --> try reading the old entry and set it from there
{
$contact['owner'] = $old['owner'];
$contact['private'] = $old['private'];
if(!isset($contact['private']))
{
$contact['private'] = $old['private'];
}
}
else // entry not found --> create a new one
{

View File

@ -555,7 +555,7 @@ class vcaladdressbook extends bocontacts
break;
case 'private':
$contact[$fieldName] = (int) $vcardValues[$vcardKey]['values'][$fieldKey] == 'PRIVATE';
(int)$contact[$fieldName] = $vcardValues[$vcardKey]['values'][$fieldKey] == 'PRIVATE';
break;
case 'cat_id':
@ -586,7 +586,6 @@ class vcaladdressbook extends bocontacts
}
$contact['n_fn'] = trim($contact['n_given'].' '.$contact['n_family']);
return $contact;
}