ObjectList: Pass the correct value to `unset()`

- $featureStatus is an associative array
This commit is contained in:
Sukhwinder Dhillon 2023-08-16 13:10:26 +02:00 committed by raviks789
parent e3ce1c4b2d
commit 17c2a19e28
1 changed files with 2 additions and 2 deletions

View File

@ -280,11 +280,11 @@ abstract class ObjectList implements Countable, IteratorAggregate, Filterable
if (! isset($status)) {
$status = $enabled;
} elseif ($status !== $enabled) {
$status = 2;
unset($features[$status]);
unset($features[$feature]);
if (empty($features)) {
break 2;
}
break;
}
}