mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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
This commit is contained in:
parent
75539ce56c
commit
7d84960b72
1 changed files with 0 additions and 2 deletions
|
@ -815,10 +815,8 @@ class Validation {
|
||||||
*/
|
*/
|
||||||
protected static function _check($check, $regex) {
|
protected static function _check($check, $regex) {
|
||||||
if (is_string($regex) && preg_match($regex, $check)) {
|
if (is_string($regex) && preg_match($regex, $check)) {
|
||||||
self::$errors[] = false;
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
self::$errors[] = true;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue