Skip to content
Permalink
Browse files

Fixing a couple errors introduced in previous commit

  • Loading branch information...
lorenzo committed May 11, 2012
1 parent 2b7c2ad commit efc3536adb7ac75723a4b345ac36792340cfca23
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Model/ModelValidator.php
@@ -249,7 +249,7 @@ public function errors($options = array()) {
* @return void
*/
public function invalidate($field, $message = true) {
$this->getModel()->validationErrors[$field][] = $value;
$this->getModel()->validationErrors[$field][] = $message;
}
/**
@@ -286,7 +286,7 @@ public function getField($name = null) {
if ($name !== null && !empty($this->_fields[$name])) {
return $this->_fields[$name];
} elseif ($name !==null) {
return null
return null;
}
return $this->_fields;
}

0 comments on commit efc3536

Please sign in to comment.
You can’t perform that action at this time.