summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'template.c')
-rw-r--r--template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.c b/template.c
index ebb3f422..e8b5e9f2 100644
--- a/template.c
+++ b/template.c
@@ -1794,7 +1794,7 @@ tplProcessCnf(struct cnfobj *o)
}
}
- if(bHaveSubtree) {
+ if(!bHaveSubtree) {
if(tplType == T_SUBTREE) {
errmsg.LogError(0, RS_RET_ERR, "template '%s' of type subtree needs "
"subtree parameter", name);