diff --git a/course/lib.php b/course/lib.php index 954fd51656c..9c3ad3275d6 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1891,17 +1891,26 @@ function print_my_moodle() { function print_course_search($value="", $return=false, $format="plain") { global $CFG; + static $count = 0; + + $count++; + + $id = 'coursesearch'; + + if ($count > 1) { + $id .= $count; + } $strsearchcourses= get_string("searchcourses"); if ($format == 'plain') { - $output = '
'; } else if ($format == 'short') { - $output = '