cast bindings to array.

This commit is contained in:
Taylor Otwell 2012-02-06 21:39:30 -06:00
parent 1351a2b189
commit 087f50a52c
1 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,8 @@ public function statement($sql, $bindings = array())
*/
protected function execute($sql, $bindings = array())
{
$bindings = (array) $bindings;
// Since expressions are injected into the query as strings, we need to
// remove them from the array of bindings. After we have removed them,
// we'll reset the array so there aren't gaps in the keys.