Skip to content

Commit 0b27c5f

Browse files
authored
Fixed null parameter warning in Mage_ImportExport_Model_Import_Entity_Product::_filterRowData() (#4086)
1 parent 1382aea commit 0b27c5f

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/ImportExport/Model/Import/Entity

1 file changed

+1
-1
lines changed

app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ protected function _saveStockItem()
19721972
*/
19731973
protected function _filterRowData(&$rowData)
19741974
{
1975-
$rowData = array_filter($rowData, '\strlen');
1975+
$rowData = array_filter($rowData, fn ($tmpString) => strlen($tmpString ?? ''));
19761976
// Exceptions - for sku - put them back in
19771977
if (!isset($rowData[self::COL_SKU])) {
19781978
$rowData[self::COL_SKU] = null;

0 commit comments

Comments
 (0)