From 205fdddc2b46e8d1e255efd36ff258ad216e6a9a Mon Sep 17 00:00:00 2001 From: Sevan Nerse Date: Mon, 16 Dec 2019 23:16:35 +0300 Subject: [PATCH] Update information of app and modules is wrong. It solves issue #994 --- app/Utilities/Updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Utilities/Updater.php b/app/Utilities/Updater.php index 04baa4447..0ab6c5f54 100644 --- a/app/Utilities/Updater.php +++ b/app/Utilities/Updater.php @@ -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; }