X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/ae6f8a065aa433337311d74bc81cb05526246f88..v3.4-0-g72d8db8c87:/login/list.php?ds=sidebyside diff --git a/login/list.php b/login/list.php index d3b1f17..0d9eec2 100644 --- a/login/list.php +++ b/login/list.php @@ -12,16 +12,24 @@ 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 '