From: moodler Date: Mon, 25 Feb 2008 02:37:04 +0000 (+0000) Subject: MDL-13631 Removed a pass-by-reference that was causing a notice in PHP5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2060540b5353f56fd353ca4009f4297b9635b64f;p=moodle.git MDL-13631 Removed a pass-by-reference that was causing a notice in PHP5 --- diff --git a/lib/phpxml/xml.php b/lib/phpxml/xml.php index fdd5a2e1f8..422d0f1150 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;