mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
Sync: fix typo, remove useless cast
This commit is contained in:
parent
956708475e
commit
ae45844bac
@ -367,13 +367,13 @@ class Sync
|
|||||||
|
|
||||||
if ($listId === null) {
|
if ($listId === null) {
|
||||||
throw new InvalidArgumentException(
|
throw new InvalidArgumentException(
|
||||||
'Cannot sync datalist entry without list_ist'
|
'Cannot sync datalist entry without list_id'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$no = [];
|
$no = [];
|
||||||
foreach ($this->objects as $k => $o) {
|
foreach ($this->objects as $k => $o) {
|
||||||
if ((int) $o->get('list_id') !== (int) $listId) {
|
if ((int) $o->get('list_id') !== $listId) {
|
||||||
$no[] = $k;
|
$no[] = $k;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user