Removing uninitialised variable warnings.

This commit is contained in:
Andrew McMillan 2008-05-30 19:52:02 +12:00
parent 26207f05df
commit 0500787b9c
2 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,11 @@ class CalDAVPrincipal
*/ */
var $schedule_outbox_url; var $schedule_outbox_url;
/**
* @var Whether or not we are using an e-mail address based URL.
*/
var $by_email;
/** /**
* Constructor * Constructor
* @param mixed $parameters If null, an empty Principal is created. If it * @param mixed $parameters If null, an empty Principal is created. If it
@ -99,6 +104,7 @@ class CalDAVPrincipal
$this->{$k} = $v; $this->{$k} = $v;
} }
$this->by_email = false;
$this->url = ConstructURL( "/".$this->username."/" ); $this->url = ConstructURL( "/".$this->username."/" );
// $this->url = ConstructURL( "/__uuids__/" . $this->username . "/" ); // $this->url = ConstructURL( "/__uuids__/" . $this->username . "/" );

View File

@ -71,6 +71,7 @@ class CalDAVRequest
global $session, $c, $debugging; global $session, $c, $debugging;
$this->options = $options; $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->principal = (object) array( 'username' => $session->username, 'user_no' => $session->user_no );
$this->raw_post = file_get_contents ( 'php://input'); $this->raw_post = file_get_contents ( 'php://input');