From: Jan Schneider Date: Mon, 5 Oct 2009 16:20:14 +0000 (+0200) Subject: Fix variable name. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=88fa975545f54c8666bdb9556b1864ce11a67ef1;p=horde.git Fix variable name. --- diff --git a/framework/Xml_Element/lib/Horde/Xml/Element.php b/framework/Xml_Element/lib/Horde/Xml/Element.php index 16b8c6a6a..bafabadcc 100644 --- a/framework/Xml_Element/lib/Horde/Xml/Element.php +++ b/framework/Xml_Element/lib/Horde/Xml/Element.php @@ -177,7 +177,7 @@ class Horde_Xml_Element implements ArrayAccess $firstKey = key($value); if ($firstKey === 0) { if (strpos($element, ':') !== false) { - list($ns, $elt) = explode(':', $var, 2); + list($ns, $elt) = explode(':', $element, 2); $baseNode = $this->_element->ownerDocument->createElementNS(Horde_Xml_Element::lookupNamespace($ns), $elt); } else { $baseNode = $this->_element->ownerDocument->createElement($element); @@ -480,8 +480,9 @@ class Horde_Xml_Element implements ArrayAccess */ protected function _children($var) { - if (is_null($this->_children)) + if (is_null($this->_children)) { $this->_cacheChildren(); + } // Honor any explicit getters. Because Horde_Xml_Element has a __call() // method, is_callable returns true on every method name. Use