diff --git a/library/Icinga/Application/Web.php b/library/Icinga/Application/Web.php index 8ee18771d..2b45ad683 100644 --- a/library/Icinga/Application/Web.php +++ b/library/Icinga/Application/Web.php @@ -322,7 +322,7 @@ class Web extends ApplicationBootstrap { parent::setupInternationalization(); if ($this->user !== null && $this->user->getPreferences() !== null - && ($locale = $this->user->getPreferences()->get('app.language') !== null) + && (($locale = $this->user->getPreferences()->get('app.language')) !== null) ) { try { Translator::setupLocale($locale);