aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>2024-10-14 14:09:05 +0200
committerGitHub <noreply@github.com>2024-10-14 14:09:05 +0200
commit4a704531cac168af1dd903825b6fc53fa43e7cfe (patch)
tree0f3356a4e4d9aa2ea49e5d52deed6d825d09f191 /src/plugins/lua
parente660799311c2ebc60eca0f83e80fdd9394344420 (diff)
downloadrspamd-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.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