From 9b7fee7a1b2a205486210d95edc0bf78830cb3dd Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sat, 19 Aug 2017 04:39:51 +0200 Subject: [PATCH] [fix] attempt to fix https://github.com/YunoHost/SSOwat/pull/86#issuecomment-323417926 --- helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.lua b/helpers.lua index 0bc68f1..ea7f67b 100644 --- a/helpers.lua +++ b/helpers.lua @@ -558,7 +558,7 @@ function get_data_for(view) -- Pass all the translated strings to the view (to use with t_) for k, v in pairs(i18n[conf["default_language"]]) do - data["t_"..k] = i18n[conf.lang][k] or v + data["t_"..k] = (i18n[conf.lang] and i18n[conf.lang][k]) or v end -- Pass flash notification content