Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…dn't work
  • Loading branch information...
commit 6620ebf1925fdef504e5464d745e10a1922a93f6 1 parent 050a5f0
@glencoates glencoates authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  MGTemplateStandardMarkers.m
View
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.