print ">\n";
foreach ($users as $user) {
- $name = $user->name ?: $user->login;
- if ($GLOBALS['User'] and $GLOBALS['User']->admin) {
+ $name = $user->html;
+ if ($GLOBALS['User'] and $GLOBALS['User']->admin('user')) {
$link = '/login/edit/'.$user->login;
$name = sprintf('<a href="%s">%s</a>', $link, $name);
}