Skip to content

Commit

Permalink
Use correct argument order.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory authored and lorenzo committed May 11, 2012
1 parent 6933b31 commit 7695da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Xml.php
Expand Up @@ -230,7 +230,7 @@ protected static function _fromArray($dom, $node, &$data, $format) {
if ($key[0] === '@') {
throw new XmlException(__d('cake_dev', 'Invalid array'));
}
if (is_numeric(implode(array_keys($value), ''))) { // List
if (is_numeric(implode('', array_keys($value)))) { // List
foreach ($value as $item) {
$itemData = compact('dom', 'node', 'key', 'format');
$itemData['value'] = $item;
Expand Down

0 comments on commit 7695da6

Please sign in to comment.