Skip to content
Permalink
Browse files

add cast for clarification and to allow int 0.

  • Loading branch information...
dereuromark committed Jun 17, 2015
1 parent 1b81323 commit 4025f2fb22a7093e9363b1b98fce05167f23d6e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Validation.php
@@ -77,7 +77,7 @@ public static function notBlank($check) {
extract(self::_defaults($check));
}
if (empty($check) && $check !== '0') {
if (empty($check) && (string)$check !== '0') {
return false;
}
return self::_check($check, '/[^\s]+/m');

0 comments on commit 4025f2f

Please sign in to comment.
You can’t perform that action at this time.