projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ead21f6
)
* tmpl_iterate_subtmpl(): we now enter this function with TP->Tokens->nParameters...
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 27 Jul 2010 22:50:43 +0000
(22:50 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 27 Jul 2010 22:50:43 +0000
(22:50 +0000)
webcit/subst.c
patch
|
blob
|
history
diff --git
a/webcit/subst.c
b/webcit/subst.c
index 00f99d8b006583cd69fbdbe9adc00009f63daa83..334f4fdc2f965ead34c77fe83a215aa0ffebcaaa 100644
(file)
--- a/
webcit/subst.c
+++ b/
webcit/subst.c
@@
-2201,11
+2201,11
@@
void tmpl_iterate_subtmpl(StrBuf *Target, WCTemplputParams *TP)
return;
}
- if (TP->Tokens->nParameters < It->AdditionalParams + 2) {
+ if (TP->Tokens->nParameters <
=
It->AdditionalParams + 2) {
LogTemplateError(
Target, "Iterator", ERR_PARM1, TP,
"doesn't work with %d params",
- TP->Tokens->nParameters);
+ TP->Tokens->nParameters
- 1
);
return;
}