removed null handling code in db::query until further confirmation of bug is received.
This commit is contained in:
@@ -56,14 +56,7 @@ class DB {
|
||||
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user