aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_html.c')
-rw-r--r--src/lua/lua_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c
index 3734e37ff..dc058745c 100644
--- a/src/lua/lua_html.c
+++ b/src/lua/lua_html.c
@@ -492,7 +492,7 @@ lua_html_foreach_tag (lua_State *L)
lua_pop (L, 1);
}
- if (hc && g_hash_table_size (ud.tags) > 0 && lua_isfunction (L, 3)) {
+ if (hc && (ud.any || g_hash_table_size (ud.tags) > 0) && lua_isfunction (L, 3)) {
if (hc->html_tags) {
lua_pushvalue (L, 3);