mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Manager/Libraries: Don't try to compare versions if any version is sufficient
This commit is contained in:
parent
fbf662bb1e
commit
6956ec4450
@ -52,7 +52,7 @@ class Libraries implements IteratorAggregate
|
||||
$library = $this->get($name);
|
||||
if ($library === null) {
|
||||
return false;
|
||||
} elseif ($version === null) {
|
||||
} elseif ($version === null || $version === true) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -456,7 +456,7 @@ class Manager
|
||||
{
|
||||
if (! $this->hasEnabled($name)) {
|
||||
return false;
|
||||
} elseif ($version === null) {
|
||||
} elseif ($version === null || $version === true) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user