From 82bcd0b298a7e801f727179cc638209534813c55 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Tue, 7 May 2013 20:13:15 +0400 Subject: [PATCH] Fixes --- framework/validators/Validator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) === ''; } }