This commit is contained in:
2025-08-01 15:06:16 +03:00
parent b86b8ff923
commit 2b02ca4471
4 changed files with 17 additions and 11 deletions

View File

@@ -44,12 +44,11 @@ class KernelService
$kernel_info = $this->getKernelInfo();
$kernelVersion = Version::getIntVersionByString($kernel_info['version']);
foreach ($modules_info as $mod) {
$modVersion = Version::getIntVersionByString($mod['version']);
if ($mod['slug'] === $kernel_info['slug'] && $modVersion <= $kernelVersion) {
return true;
if ($mod['slug'] === $kernel_info['slug'] ) {
if (Version::compare($kernel_info['version'], $mod['version']) >= 0){
return true;
}
}
}
}