diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index ae604e43..0a919936 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -266,11 +266,12 @@ class CalDAVRequest // The request is for a scheduling inbox or outbox (or something inside one) and we should auto-create it $displayname = $session->fullname . ($matches[3] == 'in' ? ' Inbox' : ' Outbox'); $this->collection_type = 'schedule-'. $matches[3]. 'box'; + $resourcetypes = sprintf('', $this->collection_type ); $sql = <<user_no, $matches[2] , $matches[1], $displayname ); + $qry = new PgQuery( $sql, $session->user_no, $matches[2] , $matches[1], $displayname, $resourcetypes ); $qry->Exec('caldav'); dbg_error_log( "caldav", "Created new collection as '$displayname'." );