diff --git a/forms/ConfirmedPasswordField.php b/forms/ConfirmedPasswordField.php index 0da16d93b..9564d5abd 100644 --- a/forms/ConfirmedPasswordField.php +++ b/forms/ConfirmedPasswordField.php @@ -190,7 +190,7 @@ class ConfirmedPasswordField extends FormField { $this->children->fieldByName($this->Name() . '[_PasswordFieldVisible]')->setValue($value['_PasswordFieldVisible']); } } else { - if($value || (!$value && !$this->canBeEmpty)) { + if($value || (!$value && $this->canBeEmpty)) { $this->value = $value; } }