mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
* 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:
parent
48a21f74de
commit
f4fa73412b
@ -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!
|
$contact['private'] = 0; // foreign contacts are never private!
|
||||||
}
|
}
|
||||||
@ -983,7 +983,7 @@ class addressbook_vcal extends addressbook_bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->fixup_contact($contact);
|
$this->fixup_contact($contact);
|
||||||
|
|
||||||
if ($this->log)
|
if ($this->log)
|
||||||
{
|
{
|
||||||
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ .
|
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ .
|
||||||
|
Loading…
Reference in New Issue
Block a user