From a31ab24a58ea56d756f07e076abdae7569c87341 Mon Sep 17 00:00:00 2001 From: evgen-d Date: Fri, 28 Nov 2014 10:36:30 +0300 Subject: [PATCH] isEmpty like condition --- Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Query.php b/Query.php index c7943d7..ec2f67d 100644 --- a/Query.php +++ b/Query.php @@ -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, '%') === ''); } /**