diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-28 10:27:21 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-28 10:27:21 +0100 |
commit | b3a4c67b1b193d4846ece51ecce1fcc914f09b83 (patch) | |
tree | 8667d850fdf967851f53215bbc8b7b47ca1fa922 | |
parent | 0cab703c941e96d03072364c2082605f18245b5a (diff) |
Admin arrive: Fixed search
-rw-r--r-- | includes/pages/admin_arrive.php | 8 |
1 files 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; } |