Fixing case.

This commit is contained in:
Michael Hagedon 2012-02-28 13:20:47 -07:00
parent ef80045fc5
commit 5eb4155236

View file

@ -232,9 +232,9 @@ class Xml {
} }
if (array_keys($value) === range(0, count($value) - 1)) { // List if (array_keys($value) === range(0, count($value) - 1)) { // List
foreach ($value as $item) { foreach ($value as $item) {
$item_data = compact('dom', 'node', 'key', 'format'); $itemData = compact('dom', 'node', 'key', 'format');
$item_data['value'] = $item; $itemData['value'] = $item;
self::_createChild($item_data); self::_createChild($itemData);
} }
} else { // Struct } else { // Struct
self::_createChild(compact('dom', 'node', 'key', 'value', 'format')); self::_createChild(compact('dom', 'node', 'key', 'value', 'format'));