放宽入库条件判断

This commit is contained in:
wlx 2015-02-05 03:24:34 +00:00
parent b6057dd0a1
commit c907ee0972
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class Csv extends AbstractProcessing implements ProcessingInterface{
foreach($this->getLines() as $line) foreach($this->getLines() as $line)
{ {
foreach($line as $k=>$v) foreach($line as $k=>$v)
if ($v=="") $line[$k]=null; if ($v=="" || is_null($v)) $line[$k]=null;
$sth->execute($line); $sth->execute($line);
} }