Commit 79b3bd45 authored by Josh Campbell's avatar Josh Campbell

Allow NULL datatype statement binding

parent 5be507f9
......@@ -231,6 +231,7 @@ class MysqliDB {
protected function _determineType($item)
{
switch (gettype($item)) {
case 'NULL':
case 'string':
return 's';
break;
......@@ -349,7 +350,7 @@ class MysqliDB {
foreach ($this->_where as $prop => $val) {
array_push($this->_bindParams, &$this->_where[$prop]);
}
}
}
}
// Bind parameters to statment
if ($hasTableData || $hasConditional){
......
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