mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
small addition to automaticaly deal with a not set system-charset
This commit is contained in:
parent
199fdc941f
commit
c7407b9ed1
@ -227,7 +227,7 @@
|
||||
*/
|
||||
function convert($data,$from='iso-8859-1',$to='utf-8')
|
||||
{
|
||||
if ($from == $to)
|
||||
if ($from == $to || !$from || !$to)
|
||||
{
|
||||
return $data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user