From: gustav_delius Date: Thu, 1 Jul 2004 08:27:58 +0000 (+0000) Subject: got rid of some undefined index notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a5db6f8a4917245ff7d89ed9885692517501c4fc;p=moodle.git got rid of some undefined index notices --- diff --git a/user/index.php b/user/index.php index 337ac90e05..037e3b2ded 100644 --- a/user/index.php +++ b/user/index.php @@ -201,7 +201,7 @@ } foreach ($students as $key => $student) { - $students[$key]->country = $countries[$student->country]; + $students[$key]->country = ($student->country) ? $countries[$student->country] : ''; } if ($sort == "country") { // Need to re-sort by full country name, not code foreach ($students as $student) {