mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
ObjectList: Pass the correct value to unset()
- $featureStatus is an associative array
This commit is contained in:
parent
e3ce1c4b2d
commit
17c2a19e28
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user