aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/lua/elastic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua
index 4303ce6cc..334402a7e 100644
--- a/src/plugins/lua/elastic.lua
+++ b/src/plugins/lua/elastic.lua
@@ -651,7 +651,7 @@ local function get_general_metadata(task)
else
r.language = empty
end
- if table.getn(lang_t) == 1 and lang_t[1] == 'en' then
+ if #lang_t == 1 and lang_t[1] == 'en' then
r.non_en = false
else
r.non_en = true