diff options
-rw-r--r-- | it_xml.class | 8 | ||||
-rw-r--r-- | itjs.class | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/it_xml.class b/it_xml.class index 381d4eb..5dd4ead 100644 --- a/it_xml.class +++ b/it_xml.class @@ -111,7 +111,7 @@ function from_xml($xmldata, $p) return empty($this->error); } -function consume($p) +function consume(/* $p */) { return false; } @@ -148,7 +148,7 @@ function _make_identifier($name) return $this->_p['lowercase'] ? strtolower($id) : $id; } -function start_element($parser, $name, $attrs) +function start_element($dummy_parser, $name, $attrs) { $name = $this->_p['prefix'] . $this->_make_identifier($name); @@ -170,7 +170,7 @@ function start_element($parser, $name, $attrs) } } -function end_element($parser, $name) +function end_element($dummy_parser, $name) { $name = $this->_make_identifier($name); @@ -197,7 +197,7 @@ function end_element($parser, $name) $this->_root = $node; } -function character_data($parser, $cdata) +function character_data($dummy_parser, $cdata) { if (isset($this->_stack[0]->val) || (trim($cdata) !== "")) $this->_stack[0]->val .= $cdata; @@ -56,7 +56,9 @@ function serialize($values, $envelope = false) } } - return it_untaint($result = $header . itjs::encode($values) . $footer); + $result = $header . itjs::encode($values) . $footer; + + return it_untaint($result); } /* |