Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ef80045fc51d6845a7ef4c256bf8aa8488e72c4e 1 parent 2665178
@michaelhagedon michaelhagedon authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Utility/Xml.php
View
6 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'));
Please sign in to comment.
Something went wrong with that request. Please try again.