From: sam_marshall Date: Fri, 23 May 2008 11:02:46 +0000 (+0000) Subject: MDL-14965: Pass-by-reference call broke forum on php5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e2ebb572b86d7301618c6e78fad930673153db50;p=moodle.git MDL-14965: Pass-by-reference call broke forum on php5 --- diff --git a/lib/form/format.php b/lib/form/format.php index 7fad587b2d..c2b3e0e8da 100644 --- a/lib/form/format.php +++ b/lib/form/format.php @@ -65,7 +65,8 @@ class MoodleQuickForm_format extends MoodleQuickForm_select{ { switch ($event) { case 'createElement': - $this->load(format_text_menu()); + $menu = format_text_menu(); + $this->load($menu); $this->setHelpButton(array('textformat', get_string('helpformatting'))); break; case 'updateValue' :