From ef75418f7bff1438a8f3ad7a6add1a8866edc38f Mon Sep 17 00:00:00 2001 From: Mark Rickerby Date: Fri, 18 Apr 2008 04:28:37 +0000 Subject: [PATCH] BUGFIX: fixed typo in variable name that was causing payment form validation to break git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52991 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/CreditCardField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/CreditCardField.php b/forms/CreditCardField.php index b6a2d1680..4c84b8e1c 100755 --- a/forms/CreditCardField.php +++ b/forms/CreditCardField.php @@ -29,7 +29,7 @@ class CreditCardField extends TextField { function jsValidation() { $formID = $this->form->FormName(); - $error = _t('CreditCardField.VALIDATIONJS1', 'Please ensure you have entered the'); + $error1 = _t('CreditCardField.VALIDATIONJS1', 'Please ensure you have entered the'); $error2 = _t('CreditCardField.VALIDATIONJS2', 'credit card number correctly.'); $first = _t('CreditCardField.FIRST', 'first'); $second = _t('CreditCardField.SECOND', 'second');