Fixes #14902: Fixed PHP notice in yii\web\MultipartFormDataParser

This commit is contained in:
Olim Saidov
2017-10-04 20:23:58 +05:00
committed by Alexander Makarov
parent 792f50759e
commit b75a85d0da
2 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,8 @@ class MultipartFormDataParser extends BaseObject implements RequestParserInterfa
$namePart = trim($namePart, ']');
if ($namePart === '') {
$current[] = [];
$lastKey = array_pop(array_keys($current));
$keys = array_keys($current);
$lastKey = array_pop($keys);
$current = &$current[$lastKey];
} else {
if (!isset($current[$namePart])) {