diff --git a/framework/validators/Validator.php b/framework/validators/Validator.php index 1ac3f27..677191b 100644 --- a/framework/validators/Validator.php +++ b/framework/validators/Validator.php @@ -262,6 +262,7 @@ abstract class Validator extends Component */ public function isEmpty($value, $trim = false) { - return $value === null || empty($value) || $value === '' || $trim && is_scalar($value) && trim($value) === ''; + return $value === null || $value === array() || $value === '' + || $trim && is_scalar($value) && trim($value) === ''; } }