From da1715fb761b2e01cead55e07698acc26805447e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 16 Jul 2011 19:28:41 -0500 Subject: [PATCH] removed unnecessary binding code. --- system/db.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/system/db.php b/system/db.php index bb5ea7fe..4769fc74 100644 --- a/system/db.php +++ b/system/db.php @@ -52,14 +52,7 @@ class DB { { $query = static::connection($connection)->prepare($sql); - $bindings = array_values($bindings); - - foreach ($bindings as $key => &$binding) - { - $query->bindParam($key + 1, $binding); - } - - $result = $query->execute(); + $result = $query->execute($bindings); if (strpos(strtoupper($sql), 'SELECT') === 0) {