Permalink
Browse files

MDL-52552 course management: insufficient cleaning of search output

  • Loading branch information...
danpoltawski authored and andrewnicols committed Dec 18, 2015
1 parent aabb46e commit 835ca0419b71a41c3bbf8931a55a29efde71423c
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/classes/management_renderer.php
@@ -1130,7 +1130,7 @@ protected function search_pagination($totalcourses, $page, $perpage, $showtotals
$totalpages = ceil($totalcourses / $perpage);
if ($showtotals) {
if ($totalpages == 0) {
$str = get_string('nocoursesfound', 'moodle', $search);
$str = get_string('nocoursesfound', 'moodle', s($search));
} else if ($totalpages == 1) {
$str = get_string('showingacourses', 'moodle', $totalcourses);
} else {

0 comments on commit 835ca04

Please sign in to comment.