Skip to content
Permalink
Browse files

Fixing case.

  • Loading branch information...
michaelhagedon committed Feb 28, 2012
1 parent ef80045 commit 5eb4155236b7a2e8ffd2e882affe40511b32ef99
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) {
$item_data = compact('dom', 'node', 'key', 'format');
$item_data['value'] = $item;
self::_createChild($item_data);
$itemData = compact('dom', 'node', 'key', 'format');
$itemData['value'] = $item;
self::_createChild($itemData);
}
} else { // Struct
self::_createChild(compact('dom', 'node', 'key', 'value', 'format'));

0 comments on commit 5eb4155

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