MDL-35768 - fix E_STRICT issue
authorDan Poltawski <dan@moodle.com>
Mon, 5 Nov 2012 06:31:54 +0000 (14:31 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 5 Nov 2012 06:31:54 +0000 (14:31 +0800)
course/format/lib.php

index 34613fd..b61333d 100644 (file)
@@ -587,7 +587,7 @@ abstract class format_base {
             if (!empty($option['element_attributes'])) {
                 $args = array_merge($args, $option['element_attributes']);
             }
-            $elements[] = &call_user_func_array(array($mform, 'addElement'), $args);
+            $elements[] = call_user_func_array(array($mform, 'addElement'), $args);
             if (isset($option['help'])) {
                 $helpcomponent = 'format_'. $this->get_format();
                 if (isset($option['help_component'])) {