Browse Source

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

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Jason Lewis 12 years ago
parent
commit
52f76b9d66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/query.php

+ 1 - 1
laravel/database/query.php

@@ -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;
 	}