Manager/Libraries: Don't try to compare versions if any version is sufficient

This commit is contained in:
Johannes Meyer 2020-11-24 15:31:11 +01:00
parent fbf662bb1e
commit 6956ec4450
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -456,7 +456,7 @@ class Manager
{
if (! $this->hasEnabled($name)) {
return false;
} elseif ($version === null) {
} elseif ($version === null || $version === true) {
return true;
}