* fixed privated contacts got synced back as public

caused by setting private=0, if owner != current user, but NOT checking if owner is set, which is not the case for SyncML
This commit is contained in:
Ralf Becker 2010-09-08 09:45:20 +00:00
parent 48a21f74de
commit f4fa73412b

View File

@ -193,7 +193,7 @@ class addressbook_vcal extends addressbook_bo
}
}
}
if ($contact['owner'] != $this->user)
if (isset($contact['owner']) && $contact['owner'] != $this->user)
{
$contact['private'] = 0; // foreign contacts are never private!
}
@ -983,7 +983,7 @@ class addressbook_vcal extends addressbook_bo
}
$this->fixup_contact($contact);
if ($this->log)
{
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ .