Skip to content
Permalink
Browse files

Use correct argument order.

  • Loading branch information...
markstory authored and lorenzo committed May 4, 2012
1 parent 6933b31 commit 7695da637cf48985d92133eb16343edfc7ef12bd
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 7695da6

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