isEmpty like condition

This commit is contained in:
evgen-d 2014-11-28 10:36:30 +03:00
parent 05c19b6ec5
commit a31ab24a58

View File

@ -1033,7 +1033,7 @@ class Query extends Component implements QueryInterface
*/
protected function isEmpty($value)
{
return $value === '' || $value === [] || $value === null || is_string($value) && trim($value) === '';
return $value === '' || $value === [] || $value === null || is_string($value) && (trim($value) === '' || trim($value, '%') === '');
}
/**