Merge pull request #3250 from dereuromark/2.5-hash

Use Hash instead of Set class
This commit is contained in:
Mark Story 2014-04-06 21:52:25 -04:00
commit 8d47ef43e5

View file

@ -14,6 +14,7 @@
App::uses('View', 'View'); App::uses('View', 'View');
App::uses('Xml', 'Utility'); App::uses('Xml', 'Utility');
App::uses('Hash', 'Utility');
/** /**
* A view class that is used for creating XML responses. * A view class that is used for creating XML responses.
@ -124,7 +125,7 @@ class XmlView extends View {
} }
} else { } else {
$data = isset($this->viewVars[$serialize]) ? $this->viewVars[$serialize] : null; $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)); $data = array($rootNode => array($serialize => $data));
} }
} }