prevent the mb_convert_encoding to return with an empty string, for the failing of the conversion in that function results in an empty string as

well.
This commit is contained in:
Klaus Leithoff 2008-01-31 12:31:18 +00:00
parent a0cee847a2
commit 08e5fa0497

View File

@ -463,7 +463,7 @@
{
return utf8_decode($data);
}
if ($this->mbstring)
if ($this->mbstring && mb_convert_encoding($data,$to,$from)!="")
{
return @mb_convert_encoding($data,$to,$from);
}