mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-13 21:59:34 +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, ';');
|
||||
}
|
||||
|
||||
if (trim($row) === '' || count($values) === 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach ($headers as $index => $column) {
|
||||
//Change the column names in small letters
|
||||
$column = strtolower($column);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue