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) {
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;
}