]> 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:12 +0000 (14:09 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2024 12:09:12 +0000 (14:09 +0200)
Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
src/plugins/lua/elastic.lua

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