From bb4e0b0b87ce6a0701a60ced1d2950bf1cbed861 Mon Sep 17 00:00:00 2001 From: chris <chris@jalakai.co.uk> Date: Mon, 28 Aug 2006 11:20:29 +0200 Subject: [PATCH] utf8_substr() fix, it wasn't using mb_substr results when available darcs-hash:20060828092029-9b6ab-f76c94b76ce1ada49e2fefde11af824bb98b99c7.gz --- inc/utf8.php | 4 ++-- 1 file 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)); } } -- GitLab