aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_html.cxx')
-rw-r--r--src/lua/lua_html.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx
index 629b4f66f..30bfa55d6 100644
--- a/src/lua/lua_html.cxx
+++ b/src/lua/lua_html.cxx
@@ -712,14 +712,14 @@ lua_html_tag_get_extra (lua_State *L)
*purl = std::get<struct rspamd_url *>(ltag->tag->extra);
rspamd_lua_setclass (L, "rspamd{url}", -1);
}
- else if (ltag->tag->flags & FL_BLOCK) {
- lua_html_push_block (L, ltag->tag->block);
- }
else {
/* Unknown extra ? */
lua_pushnil (L);
}
}
+ else if (ltag->tag->block != nullptr) {
+ lua_html_push_block (L, ltag->tag->block);
+ }
else {
lua_pushnil (L);
}