Commit 52f76b9d authored by Jason Lewis's avatar Jason Lewis

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

Signed-off-by: 's avatarJason Lewis <jason.lewis1991@gmail.com>
parent 3ba5c00e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment