mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-01 16:11:20 +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 ( !isset($this->privileges) ) $this->privileges = 0;
|
||||||
if ( is_string($this->privileges) ) $this->privileges = bindec( $this->privileges );
|
if ( is_string($this->privileges) ) $this->privileges = bindec( $this->privileges );
|
||||||
if ( $this->_is_group ) {
|
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') );
|
$this->privileges |= privilege_to_bits( array('DAV::read', 'DAV::read-current-user-privilege-set') );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user