From 2060540b5353f56fd353ca4009f4297b9635b64f Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Feb 2008 02:37:04 +0000 Subject: [PATCH] MDL-13631 Removed a pass-by-reference that was causing a notice in PHP5 --- lib/phpxml/xml.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/phpxml/xml.php b/lib/phpxml/xml.php index fdd5a2e1f85..422d0f11503 100644 --- a/lib/phpxml/xml.php +++ b/lib/phpxml/xml.php @@ -66,7 +66,8 @@ class XML{ xml_set_character_data_handler($this->parser, 'data'); } function destruct(){ xml_parser_free($this->parser); } - function & parse(&$data){ + //function & parse(&$data){ // Changed for Moodle MDL-13631 + function parse(&$data){ $this->document = array(); $this->stack = array(); $this->parent = &$this->document;