|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|