make search case-insensitive

This commit is contained in:
Jan-Philipp Litza 2012-12-27 14:24:05 +01:00
parent 7fa2353c38
commit 5a7a32d559
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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