mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-24 15:00:16 +00:00
Fix uninitialised variable warning.
This commit is contained in:
parent
0087235de2
commit
fe7ab1c5b2
@ -64,11 +64,13 @@ class CalDAVPrincipal
|
||||
global $session, $c;
|
||||
|
||||
if ( $parameters == null ) return false;
|
||||
$this->by_email = false;
|
||||
if ( is_int($parameters) ) {
|
||||
dbg_error_log( "principal", "Principal: %d", $parameters );
|
||||
$usr = getUserByID($parameters);
|
||||
}
|
||||
else if ( is_array($parameters) ) {
|
||||
if ( ! isset($parameters['options']['allow_by_email']) ) $parameters['options']['allow_by_email'] = false;
|
||||
if ( isset($parameters['username']) ) {
|
||||
$usr = getUserByName($parameters['username']);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user