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…
Reference in New Issue