Skip to content
Permalink
Browse files

Correctly calling method to not depend on functon call order

  • Loading branch information...
lorenzo committed Apr 29, 2012
1 parent deedd7a commit 94040859b24dc81867bbb2f3721a21170900a2c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Validator/CakeRule.php
@@ -172,7 +172,7 @@ public function isRequired() {
*/
public function checkRequired(&$data) {
return (
(!isset($data[$this->_field]) && $this->required === true) ||
(!isset($data[$this->_field]) && $this->isRequired() === true) ||
(
isset($data[$this->_field]) && (empty($data[$this->_field]) &&
!is_numeric($data[$this->_field])) && $this->allowEmpty === false

0 comments on commit 9404085

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