mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-24 17:36:39 +00:00
Avoid potential unassigned variable warning.
This commit is contained in:
parent
e7ad2ab06d
commit
f644a31f9b
@ -250,7 +250,7 @@ class HTTPAuthSession {
|
||||
* @return boolean Whether or not the user has the specified role.
|
||||
*/
|
||||
function AllowedTo ( $whatever ) {
|
||||
return ( $this->logged_in && isset($this->roles[$whatever]) && $this->roles[$whatever] );
|
||||
return ( isset($this->logged_in) && $this->logged_in && isset($this->roles[$whatever]) && $this->roles[$whatever] );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user