Browse Source

Fixes

tags/2.0.0-beta
Alexander Kochetov 12 years ago
parent
commit
82bcd0b298
  1. 3
      framework/validators/Validator.php

3
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) === '';
}
}

Loading…
Cancel
Save