From: defacer Date: Mon, 9 Aug 2004 08:01:40 +0000 (+0000) Subject: Fix a notice buried in the HTML. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=09794d30dba5684402b8483ef641577f14c76e38;p=moodle.git Fix a notice buried in the HTML. --- diff --git a/course/student.html b/course/student.html index c8dec7562b..af6f16a9d4 100644 --- a/course/student.html +++ b/course/student.html @@ -47,9 +47,11 @@ } echo "\n"; } - foreach ($users as $user) { - $fullname = fullname($user, true); - echo "\n"; + if (!empty($users)) { + foreach ($users as $user) { + $fullname = fullname($user, true); + echo "\n"; + } } ?>