From: Wilfried Goesgens Date: Tue, 9 Nov 2010 00:29:50 +0000 (+0100) Subject: check whether the sorting algorithm specified via BSTRs is intended for us before... X-Git-Tag: v7.86~32 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=49c07036805a7cda3fb8d61557a03a46b864daab check whether the sorting algorithm specified via BSTRs is intended for us before using its groupchange detector. --- 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)