mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix 0 index not being properly parsed for files.
This commit is contained in:
parent
72f62b739e
commit
cd7438d33d
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ class CakeRequest implements ArrayAccess {
|
|||
protected function _processFileData($path, $data, $field) {
|
||||
foreach ($data as $key => $fields) {
|
||||
$newPath = $key;
|
||||
if (!empty($path)) {
|
||||
if (strlen($path) > 0) {
|
||||
$newPath = $path . '.' . $key;
|
||||
}
|
||||
if (is_array($fields)) {
|
||||
|
|
Loading…
Reference in a new issue