]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13631 Removed a pass-by-reference that was causing a notice in PHP5
authormoodler <moodler>
Mon, 25 Feb 2008 02:37:04 +0000 (02:37 +0000)
committermoodler <moodler>
Mon, 25 Feb 2008 02:37:04 +0000 (02:37 +0000)
lib/phpxml/xml.php

index fdd5a2e1f85d96bdd656aa6f404482bd96c19d5c..422d0f1150395236363495b8b9d07ff93bfd4122 100644 (file)
@@ -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;