From 8f6cf0ac8faef6fd5083ebaa51dc9fb37704d299 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 8 Oct 2008 11:18:43 +0000 Subject: [PATCH] quitening warnings, if charset is unknown (mb_convert_encoding), as it may happen, with parts of emails (header information, ...) --- phpgwapi/inc/class.translation.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index 0ba16a22d3..c7d92b2b7e 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -466,7 +466,7 @@ class translation { return utf8_decode($data); } - if ($this->mbstring && mb_convert_encoding($data,$to,$from)!="") + if ($this->mbstring && @mb_convert_encoding($data,$to,$from)!="") { return @mb_convert_encoding($data,$to,$from); }