Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit b5f4e32

Browse files
author
Jens Schulze
committed
WIP: typo
1 parent ab9a0b9 commit b5f4e32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Model/Product/ProductVariantCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ protected function indexRow($offset, $row)
2525
$id = $row->getId();
2626
$sku = $row->getSku();
2727
} else {
28-
$id = $row[static::ID];
29-
$sku = $row[static::SKU];
28+
$id = isset($row[static::ID])? $row[static::ID] : null;
29+
$sku = isset($row[static::SKU])? $row[static::SKU] : null;
3030
}
3131
$this->addToIndex(static::ID, $offset, $id);
3232
$this->addToIndex(static::SKU, $offset, $sku);

0 commit comments

Comments
 (0)