mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Foreach: add $value so that the value won't be assigned to $key
refs #7060
This commit is contained in:
parent
33669f8969
commit
88dde47b7a
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user