Module: check_mk
Branch: master
Commit: d622b849f9d8835035e2fb45bfdb1e371fcbc556
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d622b849f9d883…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri May 6 09:06:34 2016 +0200
Fixed broken login after recent cleanup
---
web/htdocs/config.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/config.py b/web/htdocs/config.py
index f9484d1..205c664 100644
--- a/web/htdocs/config.py
+++ b/web/htdocs/config.py
@@ -318,7 +318,7 @@ def set_user_confdir(user_id):
make_nagios_directory(user_confdir)
def get_language(default = None):
- if "language" in user:
+ if user and "language" in user:
return user["language"]
elif default == None:
return default_language