Fixes #818, wraps in an array instead of type casting.

Signed-off-by: Jason Lewis <[email protected]>
This commit is contained in:
Jason Lewis
2012-07-01 22:51:42 +09:30
parent 3ba5c00e5f
commit 52f76b9d66
+1 -1
View File
@@ -140,7 +140,7 @@ class Query {
*/
public function select($columns = array('*'))
{
$this->selects = (array) $columns;
$this->selects = is_array($columns) ? $columns : array($columns);
return $this;
}