mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +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);
|
$library = $this->get($name);
|
||||||
if ($library === null) {
|
if ($library === null) {
|
||||||
return false;
|
return false;
|
||||||
} elseif ($version === null) {
|
} elseif ($version === null || $version === true) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,7 +456,7 @@ class Manager
|
|||||||
{
|
{
|
||||||
if (! $this->hasEnabled($name)) {
|
if (! $this->hasEnabled($name)) {
|
||||||
return false;
|
return false;
|
||||||
} elseif ($version === null) {
|
} elseif ($version === null || $version === true) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user