Skip to content
Permalink
Browse files

Use Hash instead of Set class

  • Loading branch information...
dereuromark committed Apr 7, 2014
1 parent 7c3390b commit ad5e62515fd824210d1ca0c67b33b5c372f0f63c
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/View/XmlView.php
@@ -14,6 +14,7 @@
App::uses('View', 'View');
App::uses('Xml', 'Utility');
App::uses('Hash', 'Utility');
/**
* A view class that is used for creating XML responses.
@@ -124,7 +125,7 @@ protected function _serialize($serialize) {
}
} else {
$data = isset($this->viewVars[$serialize]) ? $this->viewVars[$serialize] : null;
if (is_array($data) && Set::numeric(array_keys($data))) {
if (is_array($data) && Hash::numeric(array_keys($data))) {
$data = array($rootNode => array($serialize => $data));
}
}

0 comments on commit ad5e625

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