mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
IcingaObjectImports: fix PHP 8.1 notice
This commit is contained in:
parent
27e5e72f41
commit
68814e0de6
@ -198,7 +198,7 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer
|
||||
if (is_array($import)) {
|
||||
foreach ($import as $i) {
|
||||
// Gracefully ignore null members or empty strings
|
||||
if (! $i instanceof $class && strlen($i) === 0) {
|
||||
if (! $i instanceof $class && ($i === null || strlen($i) === 0)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user