Properly fixed the last commit. Stupid CTemplate. Stupid me.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1954 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
cflakes
2010-04-29 20:00:03 +00:00
parent bed30e9eb6
commit cb5206b230
+1 -1
View File
@@ -442,7 +442,7 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) {
bool bSort = (sArgs.Token(1).Left(4).Equals("SORT"));
vector<CTemplate*>* pvLoop = GetLoop(sLoopName);
if (bSort && pvLoop->size() > 1) {
if (bSort && pvLoop != NULL && pvLoop->size() > 1) {
CString sKey;
if(sArgs.Token(1).TrimPrefix_n("SORT").Left(4).Equals("ASC=")) {