Commit da1715fb authored by Taylor Otwell's avatar Taylor Otwell

removed unnecessary binding code.

parent 0ebf677a
...@@ -52,14 +52,7 @@ class DB { ...@@ -52,14 +52,7 @@ class DB {
{ {
$query = static::connection($connection)->prepare($sql); $query = static::connection($connection)->prepare($sql);
$bindings = array_values($bindings); $result = $query->execute($bindings);
foreach ($bindings as $key => &$binding)
{
$query->bindParam($key + 1, $binding);
}
$result = $query->execute();
if (strpos(strtoupper($sql), 'SELECT') === 0) if (strpos(strtoupper($sql), 'SELECT') === 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment