]> source.dussan.org Git - rspamd.git/commitdiff
Update src/plugins/lua/elastic.lua
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Mon, 14 Oct 2024 12:09:05 +0000 (14:09 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2024 12:09:05 +0000 (14:09 +0200)
Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
src/plugins/lua/elastic.lua

index 4303ce6cc12818983bd612732df1d07e69194777..334402a7e688b55a7736987af807aab51580b847 100644 (file)
@@ -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