From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:09:12 +0000 (+0200) Subject: Update src/plugins/lua/elastic.lua X-Git-Tag: 3.11.0~33^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77ff75a78d99c073edc0f002af2d8a89d5b44288;p=thirdparty%2Frspamd.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 334402a7e6..d553a65c6f 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