removed null handling code in db::query until further confirmation of bug is received.

This commit is contained in:
Taylor Otwell
2011-07-16 08:19:36 -05:00
parent 40b836511f
commit 70cba4ebe2

View File

@@ -55,16 +55,9 @@ class DB {
$bindings = array_values($bindings); $bindings = array_values($bindings);
foreach ($bindings as $key => &$binding) foreach ($bindings as $key => &$binding)
{
if (is_null($binding))
{
$query->bindValue($key + 1, null, \PDO::PARAM_INT);
}
else
{ {
$query->bindParam($key + 1, $binding); $query->bindParam($key + 1, $binding);
} }
}
$result = $query->execute(); $result = $query->execute();