small addition to automaticaly deal with a not set system-charset

This commit is contained in:
Ralf Becker 2003-10-05 13:45:46 +00:00
parent 199fdc941f
commit c7407b9ed1

View File

@ -227,7 +227,7 @@
*/
function convert($data,$from='iso-8859-1',$to='utf-8')
{
if ($from == $to)
if ($from == $to || !$from || !$to)
{
return $data;
}