diff --git a/forms/ConfirmedPasswordField.php b/forms/ConfirmedPasswordField.php index 2ee1b49df..d0cd40229 100644 --- a/forms/ConfirmedPasswordField.php +++ b/forms/ConfirmedPasswordField.php @@ -216,8 +216,7 @@ class ConfirmedPasswordField extends FormField { return (!$this->showOnClick || ($this->showOnClick && $isVisible && $isVisible->Value())); } - function validate() { - $validator = $this->form->getValidator(); + function validate($validator) { $name = $this->name; // if field isn't visible, don't validate