Skip to content

Commit 7a3e8ef

Browse files
committed
Merge pull request #154 from aoslee/master
modify empty to !isset
2 parents bccb780 + 5879be7 commit 7a3e8ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/ExportImportController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function importDataToDB($reader, $model, $columns, $key, $status, $notNul
7070
// Check validation of values
7171
foreach ($rows as $row) {
7272
foreach ($notNullColumnNames as $notNullColumn) {
73-
if (empty($row[$notNullColumn])) {
73+
if (!isset($row[$notNullColumn])) {
7474
$this->failed = true;
7575
break;
7676
}

0 commit comments

Comments
 (0)