From f719fa59056343e2ae36e732ce690cfa98845649 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 7 Jul 2018 21:27:56 +0200 Subject: [PATCH] login/list: hide unvisited if ordered by seen Filter out empty values which are not relevant to the requested view. --- login/list.php | 1 + 1 file changed, 1 insertion(+) diff --git a/login/list.php b/login/list.php index 4883da6..edf9ee6 100644 --- a/login/list.php +++ b/login/list.php @@ -12,6 +12,7 @@ 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'])) { -- 2.30.0