Project

General

Profile

Bug #1995 » 1995-2.patch

krileon, 21 October 2010 21:45

View differences:

administrator/components/com_comprofiler/comprofiler.class.php
*/
function cbutf8_substr( $str, $start, $length = null ) {
if ( function_exists( 'mb_substr' ) ) {
return mb_substr( $str, $start, $length );
return mb_substr( $str, $start, $length, 'UTF-8' );
} else {
$ar = null;
preg_match_all("/./u", $str, $ar);
(3-3/3)