diff --git a/src/db/PDOConnection.php b/src/db/PDOConnection.php index 890ecf0d..27550408 100644 --- a/src/db/PDOConnection.php +++ b/src/db/PDOConnection.php @@ -1192,8 +1192,10 @@ public function column(BaseQuery $query, $column, string $key = ''): array if ('*' !== $column) { $column = array_map('trim', explode(',', $column)); } - } elseif (is_array($column) && in_array('*', $column)) { - $column = '*'; + } elseif (is_array($column)) { + if (in_array('*', $column)) { + $column = '*'; + } } else { throw new DbException('not support type'); }