Update information of app and modules is wrong.

It solves issue #994
This commit is contained in:
Sevan Nerse 2019-12-16 23:16:35 +03:00
parent bc2593be4e
commit 205fdddc2b

View File

@ -155,14 +155,14 @@ class Updater
foreach ($versions as $alias => $version) {
// Modules come as array
if ($alias == 'core') {
if (version_compare(version('short'), $version) != 0) {
if (version_compare(version('short'), $version, '<')) {
$data['core'] = $version;
}
} else {
$module = module($alias);
// Up-to-date
if (version_compare($module->get('version'), $version) == 0) {
if (version_compare($module->get('version'), $version, '>=')) {
continue;
}