Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rbbrioso28 committed Sep 25, 2024
2 parents 5316a57 + 42f3c3f commit e1bef5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/MelisMarketPlaceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ public function compareLocalVersionFromRepo($moduleName = null, $moduleVersion =
} else {
//remove the v from the version and convert to float
//to compare the version number
$localV = str_replace('v', "", strtolower($localVersion ?? ''));
$latestV = str_replace('v', "", strtolower($arrayParameters['moduleVersion'] ?? ''));
$localV = $localVersion ? str_replace('v', "", strtolower($localVersion)) : 0;
$latestV = $arrayParameters['moduleVersion'] ? str_replace('v', "", strtolower($arrayParameters['moduleVersion'])) : 0;

//check if local version is updated than the version in repo
if ($latestV <= $localV) {
Expand Down

0 comments on commit e1bef5c

Please sign in to comment.