X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/f12b52ab39f154152b668b4bd87d02962f3b762d..673a406772bf862c3cfc99ebfff5b96582a13959:/login/list.php diff --git a/login/list.php b/login/list.php index 1f049d8..0d9eec2 100644 --- a/login/list.php +++ b/login/list.php @@ -12,13 +12,18 @@ if (@$Place['order'] == 'seen') { $order = array_map(function ($col) { return $col->seen; }, $users); # $order = array_column($users, 'seen'); #TODO php7 simplification array_multisort($order, SORT_DESC, SORT_NUMERIC, $users); + $users = array_intersect_key($users, array_filter($order)); +} + +if (isset($Place['n'])) { + array_splice($users, $Place['n']); # limit number of results } print ' 5) { print ' class="cols"'; } print ">\n"; @@ -52,8 +57,9 @@ foreach ($users as $user) { # continue to default default: if ($user->admin) { - $name .= ' (beheerder)'; + $name .= ' 🔧'; } + $name = "
$name
"; } print "
  • $name
  • \n";