Skip to content
Permalink
Browse files

Use correct argument order.

  • Loading branch information...
markstory committed May 4, 2012
1 parent 4ab6d37 commit ed1a64ca04dce5f21833f0e9fbad0c632a670e2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Xml.php
@@ -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;

0 comments on commit ed1a64c

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