Use Hash instead of Set class

This commit is contained in:
euromark 2014-04-07 03:23:51 +02:00
parent 7c3390b0d7
commit ad5e62515f

View file

@ -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 @@ class XmlView extends View {
}
} 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));
}
}