Fix 0 index not being properly parsed for files.

This commit is contained in:
mark_story 2014-08-23 13:02:36 +02:00
parent 72f62b739e
commit cd7438d33d

View file

@ -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)) {