From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:09:05 +0000 (+0200) Subject: Update src/plugins/lua/elastic.lua X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a704531cac168af1dd903825b6fc53fa43e7cfe;p=rspamd.git Update src/plugins/lua/elastic.lua Co-authored-by: Vsevolod Stakhov --- 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