Slightly more helpful message if no courses can be shown.

This commit is contained in:
thepurpleblob 2007-02-21 13:03:24 +00:00
parent 806dab4385
commit 594bb20b95
2 changed files with 8 additions and 1 deletions

View File

@ -83,6 +83,7 @@
$strdeselectall = get_string("deselectall");
$stredit = get_string("edit");
$strfrontpage = get_string('frontpage', 'admin');
$strnovalidcourses = get_string('novalidcourses');
if (empty($search) and empty($blocklist) and empty($modulelist)) {
print_header("$site->fullname : $strsearch", $site->fullname,
@ -311,7 +312,12 @@
}
} else {
print_heading(get_string("nocoursesfound", "", s($search, true)));
if (!empty($search)) {
print_heading(get_string("nocoursesfound", "", s($search, true)));
}
else {
print_heading( $strnovalidcourses );
}
}
echo "<br /><br />";

View File

@ -1019,6 +1019,7 @@ $string['notpublic'] = 'Not public!';
$string['nousersmatching'] = 'No users matching \'$a\' were found';
$string['nousersyet'] = 'There are no users yet';
$string['now'] = 'now';
$string['novalidcourses'] = 'No valid courses to be shown';
$string['numattempts'] = '$a failed login attempt(s)';
$string['numberweeks'] = 'Number of weeks/topics';
$string['numdays'] = '$a days';