add cast for clarification and to allow int 0.

This commit is contained in:
Mark Scherer 2015-06-17 12:38:06 +02:00
parent 1b81323462
commit 4025f2fb22

View file

@ -77,7 +77,7 @@ class Validation {
extract(self::_defaults($check));
}
if (empty($check) && $check !== '0') {
if (empty($check) && (string)$check !== '0') {
return false;
}
return self::_check($check, '/[^\s]+/m');