mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +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) {
|
||||
if (is_string($regex) && preg_match($regex, $check)) {
|
||||
self::$errors[] = false;
|
||||
return true;
|
||||
} else {
|
||||
self::$errors[] = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue