Skip to content

Commit

Permalink
MAGETWO-85332: Fix error loading theme configuration on PHP 7.2 #12606
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Dec 11, 2017
2 parents 35f404b + 3f1f439 commit dcf1d7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected function _prepareConfigurationData($themePackage)
$media = $themeConfig->getMedia();

$parentPathPieces = $themeConfig->getParentTheme();
if (count($parentPathPieces) == 1) {
if (is_array($parentPathPieces) && count($parentPathPieces) == 1) {
$pathPieces = $pathData['theme_path_pieces'];
array_pop($pathPieces);
$parentPathPieces = array_merge($pathPieces, $parentPathPieces);
Expand Down

0 comments on commit dcf1d7f

Please sign in to comment.