Skip to content

Commit d9ed070

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-35890' into BUGS
2 parents 3485ca6 + 92898c9 commit d9ed070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Store/Model/StorageFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ protected function _checkRequestStore(\Magento\Store\Model\StoreManagerInterface
262262
protected function getActiveStoreByCode(\Magento\Store\Model\StoreManagerInterface $storage, $scopeCode)
263263
{
264264
$stores = $storage->getStores(true, true);
265-
if ($scopeCode && isset($stores[$scopeCode])
265+
if (is_string($scopeCode) && isset($stores[$scopeCode])
266266
&& $stores[$scopeCode]->getId()
267267
&& $stores[$scopeCode]->getIsActive()
268268
) {

0 commit comments

Comments
 (0)