Skip to content

Commit

Permalink
Use Hash instead of Set class
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 7, 2014
1 parent 7c3390b commit ad5e625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/View/XmlView.php
Expand Up @@ -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.
Expand Down Expand Up @@ -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));
}
}
Expand Down

0 comments on commit ad5e625

Please sign in to comment.