From: defacer Date: Mon, 9 Aug 2004 08:06:36 +0000 (+0000) Subject: Fixes for twin notices, buried in the HTML. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fecb707db489a32eedad9dec3260a95dee0bf466;p=moodle.git Fixes for twin notices, buried in the HTML. --- diff --git a/admin/admin.html b/admin/admin.html index 81d60d8702..5d6edcdb08 100644 --- a/admin/admin.html +++ b/admin/admin.html @@ -54,9 +54,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"; + } } ?> diff --git a/admin/creators.html b/admin/creators.html index 09e6023d67..2acbba68a9 100644 --- a/admin/creators.html +++ b/admin/creators.html @@ -46,9 +46,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"; + } } ?>