summaryrefslogtreecommitdiff
path: root/program/include/rcube_json_output.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_json_output.php')
-rw-r--r--program/include/rcube_json_output.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php
index ea23dc20b..cb8a7dbf4 100644
--- a/program/include/rcube_json_output.php
+++ b/program/include/rcube_json_output.php
@@ -239,7 +239,7 @@ class rcube_json_output
if (!empty($this->callbacks))
$response['callbacks'] = $this->callbacks;
- echo json_serialize($response);
+ echo json_encode($response);
}
@@ -255,7 +255,7 @@ class rcube_json_output
foreach ($this->commands as $i => $args) {
$method = array_shift($args);
foreach ($args as $i => $arg) {
- $args[$i] = json_serialize($arg);
+ $args[$i] = json_encode($arg);
}
$out .= sprintf(