From 49c07036805a7cda3fb8d61557a03a46b864daab Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 9 Nov 2010 01:29:50 +0100 Subject: [PATCH] check whether the sorting algorithm specified via BSTRs is intended for us before using its groupchange detector. --- webcit/subst.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webcit/subst.c b/webcit/subst.c index 20ff89bf7..bfffef3f4 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -2229,8 +2229,10 @@ void tmpl_iterate_subtmpl(StrBuf *Target, WCTemplputParams *TP) if (GetHash(SortHash, SKEY(BSort), &vSortBy) && (vSortBy != NULL)) { SortBy = (SortStruct*)vSortBy; + /* first check whether its intended for us... */ + if ((SortBy->ContextType == It->ContextType)&& /** Ok, its us, lets see in which direction we should sort... */ - if (havebstr("SortOrder")) { + (havebstr("SortOrder"))) { int SortOrder; SortOrder = LBSTR("SortOrder"); if (SortOrder != 0) -- 2.30.2