summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-12-09 08:18:47 +0000
committeralecpl <alec@alec.pl>2009-12-09 08:18:47 +0000
commite5d60d69d4108a0e62270548117773244ca1905e (patch)
treec70df9ed50f8c97252b8233fdfdeec1646f56640 /program/steps/mail/func.inc
parent46b48d9afc9ef9a7669fd0089005b79486b85dda (diff)
- Use built-in json_encode() for proper JSON format in AJAX replies (and compat. with jQuery 1.4)
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index b3016ee2a..6b2ce0907 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -522,7 +522,7 @@ function rcmail_quota_display($attrib)
if (is_array($quota)) {
$OUTPUT->add_script('$(document).ready(function(){
- rcmail.set_quota('.json_serialize($quota).')});', 'foot');
+ rcmail.set_quota('.json_encode($quota).')});', 'foot');
$quota = '';
}