From 49051904410d3e40e5642c89f31078a5780f060a Mon Sep 17 00:00:00 2001 From: Jianxuan Li Date: Fri, 1 May 2015 17:45:17 +0800 Subject: [PATCH] fixed bug in dbh insert function --- Westdc/Db/Dbh.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Westdc/Db/Dbh.php b/Westdc/Db/Dbh.php index 431a381..a9ad439 100644 --- a/Westdc/Db/Dbh.php +++ b/Westdc/Db/Dbh.php @@ -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{