Skip to content

Commit

Permalink
Fixing a couple errors introduced in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 11, 2012
1 parent 2b7c2ad commit efc3536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Model/ModelValidator.php
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit efc3536

Please sign in to comment.