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

View File

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