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;
|
$match = false;
|
||||||
$index = join(' ', $usr->toArray());
|
$index = join(' ', $usr->toArray());
|
||||||
foreach ($tokens as $t) {
|
foreach ($tokens as $t) {
|
||||||
if (stristr($index, trim($t))) {
|
$t = trim($t);
|
||||||
|
if (!empty($t) && stristr($index, $t)) {
|
||||||
$match = true;
|
$match = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$match) {
|
if (!$match) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue