Fix warning if searching two whitespaces and formatting

main
Igor Scheller 6 years ago
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…
Cancel
Save