mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Removing uninitialised variable warnings.
This commit is contained in:
parent
26207f05df
commit
0500787b9c
@ -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 . "/" );
|
||||||
|
|
||||||
|
|||||||
@ -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');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user