Fix warning if searching two whitespaces and formatting
This commit is contained in:
parent
26f58b8156
commit
36830c43e7
|
@ -79,11 +79,13 @@ function admin_arrive()
|
|||
$match = false;
|
||||
$index = join(' ', $usr->toArray());
|
||||
foreach ($tokens as $t) {
|
||||
if (stristr($index, trim($t))) {
|
||||
$t = trim($t);
|
||||
if (!empty($t) && stristr($index, $t)) {
|
||||
$match = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$match) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue