From b3a4c67b1b193d4846ece51ecce1fcc914f09b83 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 28 Dec 2019 10:27:21 +0100 Subject: [PATCH] Admin arrive: Fixed search --- includes/pages/admin_arrive.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php index d6d7ad48..52fa61dc 100644 --- a/includes/pages/admin_arrive.php +++ b/includes/pages/admin_arrive.php @@ -77,10 +77,10 @@ function admin_arrive() foreach ($users as $usr) { if (count($tokens) > 0) { $match = false; - $index = join(' ', $usr->toArray()); - foreach ($tokens as $t) { - $t = trim($t); - if (!empty($t) && stristr($index, $t)) { + $index = join(' ', $usr->attributesToArray()); + foreach ($tokens as $token) { + $token = trim($token); + if (!empty($token) && stristr($index, $token)) { $match = true; break; }