Admin arrive: Fixed search

This commit is contained in:
Igor Scheller 2019-12-28 10:27:21 +01:00
parent 0cab703c94
commit b3a4c67b1b
1 changed files with 4 additions and 4 deletions

View File

@ -77,10 +77,10 @@ function admin_arrive()
foreach ($users as $usr) { foreach ($users as $usr) {
if (count($tokens) > 0) { if (count($tokens) > 0) {
$match = false; $match = false;
$index = join(' ', $usr->toArray()); $index = join(' ', $usr->attributesToArray());
foreach ($tokens as $t) { foreach ($tokens as $token) {
$t = trim($t); $token = trim($token);
if (!empty($t) && stristr($index, $t)) { if (!empty($token) && stristr($index, $token)) {
$match = true; $match = true;
break; break;
} }