mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Seems PHP is very aggressive about using pointers nowadays.
This commit is contained in:
parent
26ef2f1cb8
commit
50af0f13d3
@ -41,14 +41,6 @@ function handle_freebusy_request( $ic ) {
|
|||||||
$component =& $ic->component->FirstNonTimezone();
|
$component =& $ic->component->FirstNonTimezone();
|
||||||
$attendees = $component->GetProperties('ATTENDEE');
|
$attendees = $component->GetProperties('ATTENDEE');
|
||||||
|
|
||||||
$fb_response_template = new iCalendar( array( 'DTSTAMP' => date('Ymd\THis\Z'),
|
|
||||||
'DTSTART' => $fbq_start,
|
|
||||||
'DTEND' => $fbq_end,
|
|
||||||
'UID' => $ic->Get('UID'),
|
|
||||||
'ORGANIZER' => $ic->Get('ORGANIZER'),
|
|
||||||
'type' => 'VFREEBUSY' ) );
|
|
||||||
$fb_response_template->component->AddProperty( new iCalProp("METHOD:REPLY") );
|
|
||||||
|
|
||||||
foreach( $attendees AS $k => $attendee ) {
|
foreach( $attendees AS $k => $attendee ) {
|
||||||
$attendee_email = preg_replace( '/^mailto:/', '', $attendee->Value() );
|
$attendee_email = preg_replace( '/^mailto:/', '', $attendee->Value() );
|
||||||
if ( ! ( isset($fbq_start) || isset($fbq_end) ) ) {
|
if ( ! ( isset($fbq_start) || isset($fbq_end) ) ) {
|
||||||
@ -105,7 +97,15 @@ function handle_freebusy_request( $ic ) {
|
|||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$fbparams = array( "FBTYPE" => "BUSY-TENTATIVE" );
|
$fbparams = array( "FBTYPE" => "BUSY-TENTATIVE" );
|
||||||
$fb = clone($fb_response_template);
|
|
||||||
|
$fb = new iCalendar( array( 'DTSTAMP' => date('Ymd\THis\Z'),
|
||||||
|
'DTSTART' => $fbq_start,
|
||||||
|
'DTEND' => $fbq_end,
|
||||||
|
'UID' => $ic->Get('UID'),
|
||||||
|
'ORGANIZER' => $ic->Get('ORGANIZER'),
|
||||||
|
'type' => 'VFREEBUSY' ) );
|
||||||
|
$fb->component->AddProperty( new iCalProp("METHOD:REPLY") );
|
||||||
|
|
||||||
$fb->Add( $attendee->Name(), $attendee->Value(), $attendee->parameters );
|
$fb->Add( $attendee->Name(), $attendee->Value(), $attendee->parameters );
|
||||||
foreach( $busy_tentative AS $k => $v ) {
|
foreach( $busy_tentative AS $k => $v ) {
|
||||||
$start = new iCalDate($v->start);
|
$start = new iCalDate($v->start);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user