mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixing _fromArray(). See http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2624-xml_fromarray-does-not-handle-certain-array-structures-as-expected
This commit is contained in:
parent
2665178ec9
commit
ef80045fc5
1 changed files with 3 additions and 3 deletions
|
@ -232,9 +232,9 @@ class Xml {
|
|||
}
|
||||
if (array_keys($value) === range(0, count($value) - 1)) { // List
|
||||
foreach ($value as $item) {
|
||||
$data = compact('dom', 'node', 'key', 'format');
|
||||
$data['value'] = $item;
|
||||
self::_createChild($data);
|
||||
$item_data = compact('dom', 'node', 'key', 'format');
|
||||
$item_data['value'] = $item;
|
||||
self::_createChild($item_data);
|
||||
}
|
||||
} else { // Struct
|
||||
self::_createChild(compact('dom', 'node', 'key', 'value', 'format'));
|
||||
|
|
Loading…
Add table
Reference in a new issue