Permalink
Browse files

Temporary fix for promo code issues

This makes the license agreement page uglier, but at least it works...
  • Loading branch information...
1 parent 490a342 commit 4430b9c3814ff1513effa464751a904555e0145c Ole Zorn committed Sep 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 Classes/PromoCodeOperation.m
@@ -351,8 +351,7 @@ - (id)initWithProduct:(Product *)aProduct numberOfCodes:(NSInteger)numberOfCodes
if ([licenseAgreementScanner scanUpToString:@"<html>" intoString:NULL]) {
NSString *licenseAgreementHTML = nil;
[licenseAgreementScanner scanString:@"<html>" intoString:NULL];
- if ([licenseAgreementScanner scanUpToString:@"<html>" intoString:NULL]) {
- [licenseAgreementScanner scanUpToString:@"</html>" intoString:&licenseAgreementHTML];
+ if ([licenseAgreementScanner scanUpToString:@"</html>" intoString:&licenseAgreementHTML]) {
licenseAgreementHTML = [licenseAgreementHTML stringByAppendingString:@"</html>"];
}
if (!licenseAgreementHTML) {

0 comments on commit 4430b9c

Please sign in to comment.