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

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
This commit is contained in:
Jason Lewis 2012-07-01 22:51:42 +09:30
parent 3ba5c00e5f
commit 52f76b9d66
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ public function distinct()
*/
public function select($columns = array('*'))
{
$this->selects = (array) $columns;
$this->selects = is_array($columns) ? $columns : array($columns);
return $this;
}