BUGFIX: Validation result was ignoring the $valid flag passed as the first argument.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63890 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-10-08 20:40:11 +00:00
parent aa9a337c5c
commit d8dd8097e1

View File

@ -23,7 +23,7 @@ class ValidationResult extends Object {
* By default, it is a successful result. Call $this->error() to record errors.
*/
function __construct($valid = true, $message = null) {
$this->isValid = true;
$this->isValid = $valid;
if($message) $this->errorList[] = $message;
}