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…
Reference in New Issue