diff --git a/lib/Cake/View/XmlView.php b/lib/Cake/View/XmlView.php index e3a8b7af6..1bf5419ed 100644 --- a/lib/Cake/View/XmlView.php +++ b/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 @@ 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)); } }