Deliver empty preferences unless we configured such

This commit is contained in:
Thomas Gelf 2014-03-04 10:14:20 +00:00
parent c1177b72e7
commit 0ecf01cae8
1 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,9 @@ class User
*/
public function getPreferences()
{
if ($this->preferences === null) {
$this->preferences = new Preferences();
}
return $this->preferences;
}