diff --git a/inc/utf8.php b/inc/utf8.php index ef056bfa4f9872d3b9d622f4fac30e9f473db2a9..499952617fdd1cd35cdec3840532bc3b68379dc7 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -137,9 +137,9 @@ function utf8_strlen($string){ function utf8_substr($str, $offset, $length = null) { if(UTF8_MBSTRING){ if( $length === null ){ - mb_substr($str, $offset); + return (mb_substr($str, $offset)); }else{ - mb_substr($str, $offset, $length); + return (mb_substr($str, $offset, $length)); } }