diff options
author | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-10-14 14:09:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 14:09:05 +0200 |
commit | 4a704531cac168af1dd903825b6fc53fa43e7cfe (patch) | |
tree | 0f3356a4e4d9aa2ea49e5d52deed6d825d09f191 /src/plugins/lua | |
parent | e660799311c2ebc60eca0f83e80fdd9394344420 (diff) | |
download | rspamd-4a704531cac168af1dd903825b6fc53fa43e7cfe.tar.gz rspamd-4a704531cac168af1dd903825b6fc53fa43e7cfe.zip |
Update src/plugins/lua/elastic.lua
Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/elastic.lua | 2 |
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 |