Index: branches/preferences-work/phase3/includes/HTMLForm.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | |
88 | 88 | // Check for validation |
89 | 89 | foreach( $this->mFlatFields as $fieldname => $field ) { |
90 | | - if ( !$field->validate( $this->mFieldData[$fieldname] ) ) { |
| 90 | + if ( $field->validate( $this->mFieldData[$fieldname] ) !== true ) { |
91 | 91 | return isset($this->mValidationErrorMessage) ? |
92 | 92 | $this->mValidationErrorMessage : array( 'htmlform-invalid-input' ); |
93 | 93 | } |