mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-15 14:49:33 +00:00
Leerzeilen beim Import überspringen
This commit is contained in:
parent
5bd0741fba
commit
148b438f0f
1 changed files with 4 additions and 0 deletions
|
|
@ -507,6 +507,10 @@ class BOMImporter
|
||||||
$values = str_getcsv($row, ';');
|
$values = str_getcsv($row, ';');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (trim($row) === '' || count($values) === 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($headers as $index => $column) {
|
foreach ($headers as $index => $column) {
|
||||||
//Change the column names in small letters
|
//Change the column names in small letters
|
||||||
$column = strtolower($column);
|
$column = strtolower($column);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue