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

Allow NULL datatype statement binding

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