Check for string before sorting it

This commit is contained in:
moodler
2003-11-17 02:19:13 +00:00
parent bae53097c9
commit f8dbffb1c0
+3 -1
View File
@@ -1372,7 +1372,9 @@ function get_list_of_countries() {
include_once("$CFG->dirroot/lang/$lang/countries.php");
asort($string);
if (!empty($string)) {
asort($string);
}
return $string;
}