From 0500787b9cf5948bab2d8f40efa91ba0b68b5ca7 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 30 May 2008 19:52:02 +1200 Subject: [PATCH] Removing uninitialised variable warnings. --- inc/CalDAVPrincipal.php | 6 ++++++ inc/CalDAVRequest.php | 1 + 2 files changed, 7 insertions(+) diff --git a/inc/CalDAVPrincipal.php b/inc/CalDAVPrincipal.php index 5e6a1af9..f631b3ba 100644 --- a/inc/CalDAVPrincipal.php +++ b/inc/CalDAVPrincipal.php @@ -47,6 +47,11 @@ class CalDAVPrincipal */ var $schedule_outbox_url; + /** + * @var Whether or not we are using an e-mail address based URL. + */ + var $by_email; + /** * Constructor * @param mixed $parameters If null, an empty Principal is created. If it @@ -99,6 +104,7 @@ class CalDAVPrincipal $this->{$k} = $v; } + $this->by_email = false; $this->url = ConstructURL( "/".$this->username."/" ); // $this->url = ConstructURL( "/__uuids__/" . $this->username . "/" ); diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 121ab6ff..2cb5e039 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -71,6 +71,7 @@ class CalDAVRequest global $session, $c, $debugging; $this->options = $options; + if ( !isset($this->options['allow_by_email']) ) $this->options['allow_by_email'] = false; $this->principal = (object) array( 'username' => $session->username, 'user_no' => $session->user_no ); $this->raw_post = file_get_contents ( 'php://input');