mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-30 18:37:12 +00:00
Avoid unassigned warning.
This commit is contained in:
parent
985338a1b6
commit
05c0f95e69
@ -366,7 +366,7 @@ class CalDAVPrincipal
|
||||
@dbg_error_log( 'principal', 'Path split into at least /// %s /// %s /// %s', $path_split[1], $path_split[2], $path_split[3] );
|
||||
|
||||
$username = $path_split[1];
|
||||
if ( $path_split[1] == 'principals' ) $username = $path_split[3];
|
||||
if ( $path_split[1] == 'principals' && isset($path_split[3]) ) $username = $path_split[3];
|
||||
if ( substr($username,0,1) == '~' ) $username = substr($username,1);
|
||||
|
||||
if ( isset($options['allow_by_email']) && $options['allow_by_email'] && preg_match( '#^(\S+@\S+[.]\S+)$#', $username) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user