From 70a7cadf59432ee01c79782a9488e6252dd56bbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 11 Jan 2023 12:41:36 +0300 Subject: [PATCH] Fixed version check condition --- app/Http/Controllers/Install/Updates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Install/Updates.php b/app/Http/Controllers/Install/Updates.php index eae04d01c..86a2fe684 100644 --- a/app/Http/Controllers/Install/Updates.php +++ b/app/Http/Controllers/Install/Updates.php @@ -99,7 +99,7 @@ class Updates extends Controller $installed = $module->get('version'); - if ($installed >= $version) { + if (version_compare($installed, $version, '>=')) { flash(trans('modules.warning.latest_version', ['module' => $name]))->warning()->important(); return $this->check();