Skip to content

Commit bc6e541

Browse files
committed
MAGETWO-51175: Install extension via Web Setup only shows latest version
- CR comments
1 parent 7fba40a commit bc6e541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/src/Magento/Setup/Model/MarketplaceManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function syncPackagesForInstall()
162162
$packageNames = array_column($this->getComposerInformation()->getInstalledMagentoPackages(), 'name');
163163
$installPackages = [];
164164
foreach ($packagesJsonData['packages'] as $packageName => $package) {
165-
if (isset($package) && is_array($package)) {
165+
if (!empty($package) && isset($package) && is_array($package)) {
166166
$package = $this->unsetDevVersions($package);
167167
ksort($package);
168168
$packageValues = array_values($package);

0 commit comments

Comments
 (0)