Skip to content
Permalink
Browse files

Remove appending to $errors on success/failure.

Logging boolean values offers no real value, and just balloons memory
consumption. While removing this may cause userland problems having it does as
well.

Fixes #3657
  • Loading branch information...
markstory committed Mar 1, 2013
1 parent 75539ce commit 7d84960b72f09a268669f907232f41bfaa4811ee
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/Cake/Utility/Validation.php
@@ -815,10 +815,8 @@ protected static function _pass($method, $check, $classPrefix) {
*/
protected static function _check($check, $regex) {
if (is_string($regex) && preg_match($regex, $check)) {
self::$errors[] = false;
return true;
} else {
self::$errors[] = true;
return false;
}
}

0 comments on commit 7d84960

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