diff --git a/framework/db/QueryBuilder.php b/framework/db/QueryBuilder.php index 25474a5..5c5584e 100644 --- a/framework/db/QueryBuilder.php +++ b/framework/db/QueryBuilder.php @@ -813,7 +813,7 @@ class QueryBuilder extends \yii\base\Object $values = (array)$values; - if (empty($values) || empty($column)) { + if (empty($values) || $column === array()) { return $operator === 'IN' ? '0=1' : ''; }