make search case-insensitive

main
Jan-Philipp Litza 12 years ago
parent 7fa2353c38
commit 5a7a32d559

@ -92,7 +92,7 @@ function admin_active() {
$match = false;
$index = join("", $usr);
foreach ($tokens as $t)
if (strstr($index, trim($t))) {
if (stristr($index, trim($t))) {
$match = true;
break;
}

@ -35,7 +35,7 @@ function admin_arrive() {
$match = false;
$index = join("", $usr);
foreach ($tokens as $t)
if (strstr($index, trim($t))) {
if (stristr($index, trim($t))) {
$match = true;
break;
}
@ -57,4 +57,4 @@ function admin_arrive() {
'link' => page_link_to('admin_arrive')
));
}
?>
?>

@ -33,7 +33,7 @@ function admin_free() {
$match = false;
$index = join("", $usr);
foreach ($tokens as $t)
if (strstr($index, trim($t))) {
if (stristr($index, trim($t))) {
$match = true;
break;
}

Loading…
Cancel
Save