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

Commit e798807

Browse files
authored
Merge pull request #139 from EmicoEcommerce/hotfix/category-export-bug
Type cast data value to integer
2 parents 630deb9 + e75a402 commit e798807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Write/Categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function exportStore(Writer $writer, XMLWriter $xml, Store $store, array
133133
// Always export store root category whether it is enabled or not
134134
if ($parentId === 1) {
135135
// Skip category if not root of current store
136-
if ($data['entity_id'] !== $storeRootCategoryId) {
136+
if ((int) $data['entity_id'] !== $storeRootCategoryId) {
137137
continue;
138138
}
139139

0 commit comments

Comments
 (0)