Skip to content

Commit

Permalink
Modules/admin/controllers/updater.php - Fix version compare
Browse files Browse the repository at this point in the history
  • Loading branch information
code-path committed Apr 17, 2024
1 parent c62bc37 commit 1ec8254
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions application/modules/admin/controllers/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,21 +546,11 @@ private function check()
}
else
{
// Keep track of skip
$skip = !isset($packages[$this->version]) ? false : true;

// Loop through packages
foreach($packages as $key => $package)
{
// We're gonna need rest of packages
if($skip && $key == $this->version)
{
$skip = false;
continue;
}

// Skip installed updates
if($skip)
if(version_compare($this->version, $key, '>='))
continue;

// Add package
Expand Down

0 comments on commit 1ec8254

Please sign in to comment.