fixed bug in dbh insert function

This commit is contained in:
Jianxuan Li 2015-05-01 17:45:17 +08:00
parent 013a2e0d50
commit 4905190441
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Dbh
foreach($data as $k=>$v)
{
$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;
}else{