fixed bug in dbh insert function
This commit is contained in:
parent
013a2e0d50
commit
4905190441
|
@ -25,7 +25,7 @@ class Dbh
|
||||||
foreach($data as $k=>$v)
|
foreach($data as $k=>$v)
|
||||||
{
|
{
|
||||||
$fields[] = '"'.$k.'"';
|
$fields[] = '"'.$k.'"';
|
||||||
if(is_int($v) || is_float($v) || is_bool($v))
|
if(is_int($v) || is_float($v) || is_bool($v) || $v === "NULL")
|
||||||
{
|
{
|
||||||
$datas[] = $v;
|
$datas[] = $v;
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue