Commit c1c5bd02 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Corrected type detection logic for mixed-type <definition>s

parent fecc3845
......@@ -1038,7 +1038,7 @@ reportxml_t * reportxml_database_build_report(reportxml_database_t *db
return reportxml_new();
}
if (type != REPORTXML_NODE_TYPE__ERROR) {
if (type == REPORTXML_NODE_TYPE__ERROR) {
/* Now the hard part: find out what level we are. */
child = reportxml_node_get_child(definition, 0);
if (!child) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment