Commit 82bcd0b2 by Alexander Kochetov

Fixes

parent 684295fe
...@@ -262,6 +262,7 @@ abstract class Validator extends Component ...@@ -262,6 +262,7 @@ abstract class Validator extends Component
*/ */
public function isEmpty($value, $trim = false) 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) === '';
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment