mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 21:04:25 +02:00
Deliver empty preferences unless we configured such
This commit is contained in:
parent
c1177b72e7
commit
0ecf01cae8
@ -163,6 +163,9 @@ class User
|
|||||||
*/
|
*/
|
||||||
public function getPreferences()
|
public function getPreferences()
|
||||||
{
|
{
|
||||||
|
if ($this->preferences === null) {
|
||||||
|
$this->preferences = new Preferences();
|
||||||
|
}
|
||||||
return $this->preferences;
|
return $this->preferences;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user