From 6fe060569b6112058740fe1ba86fed3a7f5fe319 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 4 Nov 2009 03:15:09 +0000 Subject: [PATCH] forum MDL-20739 Fixed bad conversion of html_select component --- mod/forum/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 1ecea4ab84..f7af02e7d0 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -4169,7 +4169,9 @@ function forum_print_rating_menu($postid, $userid, $scale, $myrating=NULL) { $strrate = get_string("rate", "forum"); } $scale = array(FORUM_UNSET_POST_RATING => $strrate.'...') + $scale; - echo $OUTPUT->select(html_select::make($scale, $postid, $myrating, false)->add_class('forumpostratingmenu')); + $select = html_select::make($scale, $postid, $myrating, false); + $select->add_class('forumpostratingmenu'); + echo $OUTPUT->select($select); } /** -- 2.39.5