]> git.mjollnir.org Git - moodle.git/commitdiff
got rid of some undefined index notices
authorgustav_delius <gustav_delius>
Thu, 1 Jul 2004 08:27:58 +0000 (08:27 +0000)
committergustav_delius <gustav_delius>
Thu, 1 Jul 2004 08:27:58 +0000 (08:27 +0000)
user/index.php

index 337ac90e054ad143d54d9013a7d9476cd22e55ec..037e3b2dedc2ddf40a79e963acbc95cc67223db7 100644 (file)
         }
 
         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) {