aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r--src/cfg_xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c
index 9920f355c..27667649d 100644
--- a/src/cfg_xml.c
+++ b/src/cfg_xml.c
@@ -1611,7 +1611,7 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam
*error = g_error_new (xml_error_quark (), XML_PARAM_MISSING, "param 'condition' is required for tag 'if'");
ud->state = XML_ERROR;
}
- if (! lua_check_condition (ud->cfg, condition)) {
+ else if (! lua_check_condition (ud->cfg, condition)) {
ud->state = XML_SKIP_ELEMENTS;
}
return;