Permalink
Browse files

Fix for bug in IF_START handling that meant {% if not condition %} di…

…dn't work
  • Loading branch information...
1 parent 050a5f0 commit 6620ebf1925fdef504e5464d745e10a1922a93f6 @glencoates glencoates committed Aug 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 MGTemplateStandardMarkers.m
@@ -342,7 +342,7 @@ - (NSObject *)markerEncountered:(NSString *)marker withArguments:(NSArray *)args
*blockEnded = YES;
} else if ([marker isEqualToString:IF_START]) {
- if (args && ([args count] == 1 || [args count] == 3)) {
+ if (args && ([args count] >= 1 && [args count] <= 3)) {
*blockStarted = YES;
// Determine appropriate values for outputEnabled and for our if-stack frame.

0 comments on commit 6620ebf

Please sign in to comment.