]> git.mjollnir.org Git - moodle.git/commitdiff
Slightly more helpful message if no courses can be shown.
authorthepurpleblob <thepurpleblob>
Wed, 21 Feb 2007 13:03:24 +0000 (13:03 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 21 Feb 2007 13:03:24 +0000 (13:03 +0000)
course/search.php
lang/en_utf8/moodle.php

index 047f56d81fbb3e3535986aeb033841196605e685..1fbccb1439f709c8ee07a88f8f0db742cb8c628d 100644 (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, 
         }
 
     } 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 />";
index d1ea99b62d2952e504c070281097d20dbe27c05f..d720199f64281871fb9dc202c642477aae362e34 100644 (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';