diff --git a/laravel/database/connection.php b/laravel/database/connection.php index 2912ebd4..6204aff8 100644 --- a/laravel/database/connection.php +++ b/laravel/database/connection.php @@ -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.