diff --git a/library/Icinga/Util/DirectoryIterator.php b/library/Icinga/Util/DirectoryIterator.php index a2bed1c27..cee37b6b5 100644 --- a/library/Icinga/Util/DirectoryIterator.php +++ b/library/Icinga/Util/DirectoryIterator.php @@ -140,6 +140,7 @@ class DirectoryIterator implements RecursiveIterator public function next(): void { + $path = null; do { $this->files->next(); $skip = false;