Merge branch 'MDL-46902_m26' of git://github.com/markn86/moodle into MOODLE_26_STABLE

This commit is contained in:
Damyon Wiese
2014-09-01 15:54:40 +08:00
+3 -1
View File
@@ -1067,7 +1067,9 @@ class core_course_management_renderer extends plugin_renderer_base {
$html = '';
$totalpages = ceil($totalcourses / $perpage);
if ($showtotals) {
if ($totalpages == 1) {
if ($totalpages == 0) {
$str = get_string('nocourses');
} else if ($totalpages == 1) {
$str = get_string('showingacourses', 'moodle', $totalcourses);
} else {
$a = new stdClass;