Skip to content
Permalink
Browse files

Fixing _fromArray(). See http://cakephp.lighthouseapp.com/projects/42…

  • Loading branch information...
michaelhagedon committed Feb 28, 2012
1 parent 2665178 commit ef80045fc51d6845a7ef4c256bf8aa8488e72c4e
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Utility/Xml.php
@@ -232,9 +232,9 @@ protected static function _fromArray($dom, $node, &$data, $format) {
}
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'));

0 comments on commit ef80045

Please sign in to comment.
You can’t perform that action at this time.