Skip to content

Commit 4065cdd

Browse files
authored
Merge pull request #64 from MightyMCoder/develop
bugfix: import empty item values
2 parents efd4591 + b894532 commit 4065cdd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

import/import_items.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ function compareArrays(array $array1, array $array2): bool {
4444
}, ARRAY_FILTER_USE_KEY);
4545

4646
foreach ($array1 as $value) {
47+
if ($value === '') {
48+
continue;
49+
}
50+
4751
if (!in_array($value, $array2, true)) {
4852
return true;
4953
}

0 commit comments

Comments
 (0)