summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-01-19 14:47:05 +0000
committeralecpl <alec@alec.pl>2010-01-19 14:47:05 +0000
commita7dba8546377d2f018cc7fa8d170e7b795077ae6 (patch)
tree27fdff89732ce4c7d4fa07f192aa12b7c41dd08c /program
parentd6584f72069cb0a4efd8cd195795a9db72dce9e7 (diff)
- ignore json_encode() warnings
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_shared.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 99d8b16df..e93e9aefe 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -578,7 +578,9 @@ function json_serialize($input)
{
$input = rc_utf8_clean($input);
- return json_encode($input);
+ // sometimes even using rc_utf8_clean() the input contains invalid UTF-8 sequences
+ // that's why we have @ here
+ return @json_encode($input);
}