mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +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