From fa4843d52113a765a2d2d7c36aa786ebf9d32446 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 13 Jan 2012 11:28:44 +1300 Subject: [PATCH] This needs to be a vCalendar to do scheduling actions now. Viz.: dmz-sv-cal.physik.uni-muenchen.de-error_log-20120108:[Wed Jan 04 14:26:16 2012] [error] [client 10.153.220.88] PHP Catchable fatal error: Argument 1 passed to handle_schedule_reply() must be an instance of vCalendar, instance of vComponent given, called in /usr/share/davical/inc/caldav-POST.php on line 144 and defined in /usr/share/davical/inc/caldav-PUT-functions.php on line 270 --- inc/caldav-POST.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-POST.php b/inc/caldav-POST.php index c8d9947b..85936cad 100644 --- a/inc/caldav-POST.php +++ b/inc/caldav-POST.php @@ -122,7 +122,7 @@ function handle_cancel_request( $ic ) { $request->XMLResponse( 200, $response ); } -$ical = new vComponent( $request->raw_post ); +$ical = new vCalendar( $request->raw_post ); $method = $ical->GetPValue('METHOD'); $resources = $ical->GetComponents('VTIMEZONE',false);