From 0ecf01cae860b9028f87dc27a8db5eff900864da Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 4 Mar 2014 10:14:20 +0000 Subject: [PATCH] Deliver empty preferences unless we configured such --- library/Icinga/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Icinga/User.php b/library/Icinga/User.php index 94ce4c6b9..5d7887af3 100644 --- a/library/Icinga/User.php +++ b/library/Icinga/User.php @@ -163,6 +163,9 @@ class User */ public function getPreferences() { + if ($this->preferences === null) { + $this->preferences = new Preferences(); + } return $this->preferences; }