From 684295fe0b44bffd053d3f2f273295dc36b893d6 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Tue, 7 May 2013 20:11:31 +0400 Subject: [PATCH] Fixes --- framework/db/QueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' : ''; }