From 18dc1fd45620b412ac7cd5fd08a86a880a6f853b Mon Sep 17 00:00:00 2001 From: john Date: Fri, 15 Feb 2008 20:47:44 +0000 Subject: [PATCH] Undefined var in parse() method causing problems. Original author most likely meant $attr. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6463 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/xml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/xml.php b/cake/libs/xml.php index bd57fb179..ba2494fb7 100644 --- a/cake/libs/xml.php +++ b/cake/libs/xml.php @@ -776,7 +776,7 @@ class Xml extends XmlNode { if ($attr == 'xmlns') { $namespace = $val; } else { - list($pre, $prefix) = explode(':', $name); + list($pre, $prefix) = explode(':', $attr); $this->addNamespace($prefix, $val); } } @@ -1207,4 +1207,4 @@ class XmlManager { } } -?> \ No newline at end of file +?>