From 087f50a52cd3432f925fc3af18dee82455019ea6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 6 Feb 2012 21:39:30 -0600 Subject: [PATCH] cast bindings to array. --- laravel/database/connection.php | 2 ++ 1 file changed, 2 insertions(+) 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.