mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
If data is already a Horde_iCalendar object, use it instead of creating a new one
This commit is contained in:
parent
65bf21742a
commit
67289c346b
@ -553,6 +553,8 @@ class addressbook_vcal extends addressbook_bo
|
||||
|
||||
require_once(EGW_SERVER_ROOT.'/phpgwapi/inc/horde/Horde/iCalendar.php');
|
||||
|
||||
if(!($_vcard instanceof Horde_iCalendar))
|
||||
{
|
||||
$container = false;
|
||||
$vCard = Horde_iCalendar::newComponent('vcard', $container);
|
||||
|
||||
@ -560,6 +562,9 @@ class addressbook_vcal extends addressbook_bo
|
||||
{
|
||||
return False;
|
||||
}
|
||||
} else {
|
||||
$vCard = $_vcard;
|
||||
}
|
||||
$vcardValues = $vCard->getAllAttributes();
|
||||
|
||||
if (!empty($GLOBALS['egw_info']['user']['preferences']['syncml']['minimum_uid_length']))
|
||||
|
Loading…
Reference in New Issue
Block a user