1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Bugtracker #4169 - Possible fix for redirect not working

This commit is contained in:
mcfly
2007-11-16 01:28:54 +00:00
parent c099106b28
commit 892e8bc33a

View File

@@ -33,12 +33,9 @@ if (!function_exists('file_put_contents')) {
if (!function_exists('stripos')) {
function stripos($haystack, $needle) {
$parts = explode(strtolower($needle), strtolower($haystack), 2);
if (count($parts) == 1) {
return false;
}
return strlen($parts[0]);
function stripos($str,$needle,$offset=0)
{
return strpos(strtolower($str), strtolower($needle), $offset);
}
}