Admin arrive: Fixed search
This commit is contained in:
parent
0cab703c94
commit
b3a4c67b1b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue