From 0fc55efc7d887a07061b52456bfb01e0bc298d9a Mon Sep 17 00:00:00 2001 From: David M Date: Wed, 7 Feb 2007 04:02:00 +0000 Subject: #7698 - small UTF-8 thing git-svn-id: file:///svn/phpbb/trunk@6971 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/utf/utf_tools.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/utf/utf_tools.php') diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php index a13246c65d..9ab31e60e4 100644 --- a/phpBB/includes/utf/utf_tools.php +++ b/phpBB/includes/utf/utf_tools.php @@ -719,7 +719,7 @@ function utf8_recode($string, $encoding) { $ret = @iconv($encoding, 'utf-8', $string); - if (isset($ret[0])) + if (!empty($ret)) { return $ret; } @@ -730,7 +730,7 @@ function utf8_recode($string, $encoding) { $ret = @mb_convert_encoding($string, 'utf-8', $encoding); - if (isset($ret[0])) + if (!empty($ret)) { return $ret; } @@ -741,7 +741,7 @@ function utf8_recode($string, $encoding) { $ret = @recode_string($encoding . '..utf-8', $string); - if (isset($ret[0])) + if (!empty($ret)) { return $ret; } -- cgit v1.2.1