mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
- small UTF-8 thing git-svn-id: file:///svn/phpbb/trunk@6971 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user