diff --git a/library/Icinga/Protocol/File/Reader.php b/library/Icinga/Protocol/File/Reader.php index 651846b58..a9b0455b7 100644 --- a/library/Icinga/Protocol/File/Reader.php +++ b/library/Icinga/Protocol/File/Reader.php @@ -81,7 +81,7 @@ class Reader extends FilterIterator if ($matched === false) { throw new FileReaderException('Failed parsing regular expression!'); } else if ($matched === 1) { - foreach ($data as $key) { + foreach ($data as $key => $value) { if (is_int($key)) { unset($data[$key]); }