aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>2024-10-14 14:09:12 +0200
committerGitHub <noreply@github.com>2024-10-14 14:09:12 +0200
commit77ff75a78d99c073edc0f002af2d8a89d5b44288 (patch)
treea2fa25b8aac19654bf6b21ed91527d5d2a1e7e10 /src
parent4a704531cac168af1dd903825b6fc53fa43e7cfe (diff)
downloadrspamd-77ff75a78d99c073edc0f002af2d8a89d5b44288.tar.gz
rspamd-77ff75a78d99c073edc0f002af2d8a89d5b44288.zip
Update src/plugins/lua/elastic.lua
Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
Diffstat (limited to 'src')
-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 334402a7e..d553a65c6 100644
--- a/src/plugins/lua/elastic.lua
+++ b/src/plugins/lua/elastic.lua
@@ -646,7 +646,7 @@ local function get_general_metadata(task)
table.insert(lang_t, l)
end
end
- if table.getn(lang_t) > 0 then
+ if #lang_t > 0 then
r.language = lang_t
else
r.language = empty