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:
mark_story 2013-03-01 13:41:10 -05:00
parent 75539ce56c
commit 7d84960b72

View file

@ -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;
} }
} }