Skip to content

Commit d173193

Browse files
⏫ Forwardport of #12606 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12606.patch (created by @Alanaktion) based on commit(s): 1. bf611be
1 parent 8e77e2f commit d173193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Design/Theme/ThemeList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ protected function _prepareConfigurationData($themePackage)
234234
$media = $themeConfig->getMedia();
235235

236236
$parentPathPieces = $themeConfig->getParentTheme();
237-
if (count($parentPathPieces) == 1) {
237+
if (is_array($parentPathPieces) && count($parentPathPieces) == 1) {
238238
$pathPieces = $pathData['theme_path_pieces'];
239239
array_pop($pathPieces);
240240
$parentPathPieces = array_merge($pathPieces, $parentPathPieces);

0 commit comments

Comments
 (0)