summaryrefslogtreecommitdiff
path: root/inc/utf8.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-08-28 11:20:29 +0200
committerchris <chris@jalakai.co.uk>2006-08-28 11:20:29 +0200
commitbb4e0b0b87ce6a0701a60ced1d2950bf1cbed861 (patch)
treeffba229685a854ddc0f2f3d8c2c3004c05bbe54b /inc/utf8.php
parentdc2c0e04646a8bbd31f08140918d61d1dda25c2e (diff)
downloadrpg-bb4e0b0b87ce6a0701a60ced1d2950bf1cbed861.tar.gz
rpg-bb4e0b0b87ce6a0701a60ced1d2950bf1cbed861.tar.bz2
utf8_substr() fix, it wasn't using mb_substr results when available
darcs-hash:20060828092029-9b6ab-f76c94b76ce1ada49e2fefde11af824bb98b99c7.gz
Diffstat (limited to 'inc/utf8.php')
-rw-r--r--inc/utf8.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/utf8.php b/inc/utf8.php
index ef056bfa4..499952617 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));
}
}