mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
add cast for clarification and to allow int 0.
This commit is contained in:
parent
1b81323462
commit
4025f2fb22
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class Validation {
|
||||||
extract(self::_defaults($check));
|
extract(self::_defaults($check));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($check) && $check !== '0') {
|
if (empty($check) && (string)$check !== '0') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return self::_check($check, '/[^\s]+/m');
|
return self::_check($check, '/[^\s]+/m');
|
||||||
|
|
Loading…
Add table
Reference in a new issue