v0.1.11
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user