forked from extern/egroupware
added php4.3 compatibility function stripos, to get back php4.3 compatibility after the recent replacement of stristr with stripos
This commit is contained in:
parent
1bcde359fc
commit
297690b22c
@ -884,3 +884,14 @@ class so_sql
|
||||
return $cache[$cache_key] =& $ret;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists("stripos"))
|
||||
{
|
||||
/**
|
||||
* stripos for php < 5
|
||||
*/
|
||||
function stripos($str,$needle,$offset=0)
|
||||
{
|
||||
return strpos(strtolower($str),strtolower($needle),$offset);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user