mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Avoid using unassigned element.
This commit is contained in:
parent
4a3b5c7051
commit
395d14d85d
@ -405,7 +405,7 @@ class DAVPrincipal extends Principal
|
||||
if ( !isset($this->privileges) ) $this->privileges = 0;
|
||||
if ( is_string($this->privileges) ) $this->privileges = bindec( $this->privileges );
|
||||
if ( $this->_is_group ) {
|
||||
if ( in_array($session->principal->url(), $this->GroupMemberSet()) ) {
|
||||
if ( isset($session->principal) && in_array($session->principal->url(), $this->GroupMemberSet()) ) {
|
||||
$this->privileges |= privilege_to_bits( array('DAV::read', 'DAV::read-current-user-privilege-set') );
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user